Jump to content


list of current sessions

  • Please log in to reply
3 replies to this topic

#1 garysenter

  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 26 April 2006 - 01:23 AM

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

#2 Masna

  • Staff Alumni
  • Advanced Member
  • 288 posts
  • LocationNew York

Posted 26 April 2006 - 01:52 AM

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.
I like LoL.

#3 garysenter

  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 26 April 2006 - 02:02 AM

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.

#4 litebearer

  • Members
  • PipPipPip
  • Advanced Member
  • 2,357 posts
  • Locationwhite lake michigan

Posted 26 April 2006 - 02:25 AM

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]


all the brothers were valiant!

[br][br]The truely intelligent people are not those who create the dots; rather they are they ones with the ability to connect the dots into a coherent picture

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users