Jump to content

Viewer statistics

Max Castril

Recommended Posts

In the database, you store the timestamp of their last activity, so any time they load a page or click on a link you save the timestamp in the database.  The number of people online is the number of people who have their last activity within a certain time range, like 10 or 15 minutes.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...