Jump to content

Users online


Mutley

Recommended Posts

A simple method is to update a field in the db with each users session id and a timestamp. Then, on each request check and delete any record with a timestamp older than say 10 mins.

 

A more complex method would be to use a custom session handler and store all your session data in the database.

Link to comment
https://forums.phpfreaks.com/topic/44512-users-online/#findComment-216152
Share on other sites

http://www.hscripts.com/scripts/php/usersOnline.php

 

That may help you out.

 

http://scripts.filehungry.com/showcase/php/online_users/

 

Or even that, heck search google.com for "users online php" and I am sure you will find many different answers to this question.

Link to comment
https://forums.phpfreaks.com/topic/44512-users-online/#findComment-216188
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.