garysenter Posted April 26, 2006 Share Posted April 26, 2006 How do I get a list of all current sessions? This would act as a list of members that are currently logged in. Please help Link to comment https://forums.phpfreaks.com/topic/8419-list-of-current-sessions/ Share on other sites More sharing options...
Masna Posted April 26, 2006 Share Posted April 26, 2006 I don't believe you can just obtain a list of all sessions accessing a page. You have to store each session, via a script each user runs while accessing a page, in a database, or a .txt file. MySQL would be a good start. Link to comment https://forums.phpfreaks.com/topic/8419-list-of-current-sessions/#findComment-30798 Share on other sites More sharing options...
garysenter Posted April 26, 2006 Author Share Posted April 26, 2006 I have one im MySQL, it adds users when they log in(session created), however, if a user does not log off(session exit) they are never removed from the table. I have seen on several sites that they have some way of calculating how many users are currently on. I would like something like that. Link to comment https://forums.phpfreaks.com/topic/8419-list-of-current-sessions/#findComment-30802 Share on other sites More sharing options...
litebearer Posted April 26, 2006 Share Posted April 26, 2006 Might look here[a href=\"http://www.sim-php.info/users-online-script.php\" target=\"_blank\"]http://www.sim-php.info/users-online-script.php[/a]Lite... Link to comment https://forums.phpfreaks.com/topic/8419-list-of-current-sessions/#findComment-30808 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.