User login count

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bedcor
Forum Newbie
Posts: 24
Joined: Fri Jul 26, 2002 11:01 am
Location: Barrie, Ontario

User login count

Post by bedcor »

Is there a way to track how many times a specific user has logged onto your site?
User avatar
Johnm
Forum Contributor
Posts: 344
Joined: Mon May 13, 2002 12:05 pm
Location: Michigan, USA
Contact:

Post by Johnm »

Well,
If every user has to log into the site you probably have a database table or something of the sort with all of the user names and passwords in it. You could add an integer field to that table, set it initially to zero, and increment it each time a user logs on to your site.
If the user doesn't have to enter a user name or password then tracking usage accurately will be pretty much impossible.

Direwolf
Post Reply