DataDoIt
|
Posted: 03/31/2004, 9:56 AM |
|
CCS2; PHP; MySQL
Is there a magical way to build an admin screen that will show me all users
who are currently logged in, if CCS is setting UserLogin as a session value?
-Mike R.
|
|
|
srinivas
Posts: 54
|
Posted: 04/04/2004, 1:21 PM |
|
Here is one way:
- You can store the session information into your database when a user logs in
- For every page request check if the same session exists and if so update the timestamp
- Have a scheduled job clearning up the sessions that are TOO old
Now all you have to do is to display the session information (total number of users, user name(s) etc.) in a page from the dabase.
Hope this helps.
-Srinivas
|
|
|
|