[Phplib-users] Showing Who is Logged In
Brought to you by:
nhruby,
richardarcher
From: Andrew C. <ph...@ev...> - 2004-01-07 22:07:04
|
Well, after quite a bit of searching, I have been able to determine that this is a frequently-asked question. I have found several references to looking it up in the archives. However, I haven't been able to find a straight answer in the archives. So, here it is: Is there a way to display a list of who is logged in? That is, can the entries in the active_sessions table be associated with the related entries in the auth_users (or auth_users_md5) table somehow? What I want is something like the view_sessions.php3 script in the phplib distro but, that shows what user is associated with each session. Thus, it should be easier to make a determination about who one is "kicking off" when one manually destroys a session, who is engaged in specific system activities, or who isn't logging out. I imagine it might be possible to decode the contents of active_sessions.value and extract the necessary information somehow. However, if someone already knows how this works and can explain it (or even has working code to do it,) it would be a lot less hassle than trying to reverse-engineer. Andrew Crawford ph...@ev... |