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 Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.