Mutley Posted March 27, 2007 Share Posted March 27, 2007 How do I show how many users are online, is this using sessions and is it complex to do? Doesn't need to be realtime, just something basic. Link to comment https://forums.phpfreaks.com/topic/44512-users-online/ Share on other sites More sharing options...
trq Posted March 27, 2007 Share Posted March 27, 2007 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 More sharing options...
per1os Posted March 27, 2007 Share Posted March 27, 2007 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.