I am trying to keep a MySQL table of all currently online users for a system I'm making. It's pretty simple to add the username to the list when they login, but I don't know how to remove their username when they leave (unless they click the logout button). Basically I want to be able to keep a list of all currently active users. So if they close out their browser, it will remove their name from the list (within a reasonable time frame). I'm basically trying to keep this list of online users for a chat application I'm building. Anyone have any suggestions on how to do this?
Thanks, Matt http://sweetphp.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php