Online Users

From: Date: Fri, 02 Jul 2004 02:27:49 +0000
Subject: Online Users
Groups: php.general 
Request: Send a blank email to php-general+get-189501@lists.php.net to get a copy of this message
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

« previous php.general (#189501) next »