Add a timeout value, if user does not refresh page or have any activity in X seconds, logout or do not list. "Mubashar-Hotmail" <mubasharw@xxxxxxxxxxx> wrote in message news:BAY18-DAV6Uwgyt9MVO000142b9@xxxxxxxxxxxxxx Hi all, In the scenario of "Who are online now" on the site, how we track user If a he don't click on "Logout" button but directly close its browser or switch to another site. Thanks in Advance, Mubashar -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php