Hey guys,
I've developed a PHP web application, where users must login to use it. I'd like to let them view who's currently "online" in the application.
I've thought of using sessions since I already use them to store some user's information, but I don't know how to
1) view all active sessions
2) check when a user leaves the application by closing the window or browsing into another site, without "logging out" properly from the application.
I've thought of looking at the session directory, but even when users are getting out of the application, the sess_sessionID file remains there with session values in it...
Any idea anyone ?
Thanks a great deal, I'm quite desperate here...
Herten