The current users' num is actually not exactly and it's just an estimated one. You can save your users' data in an array, and every time receive a request from a browser you should modify your array and then you can get how many users are "online". And also there need another function to clean up the expired users. Best regards, Shiqi Yang -----Original Message----- From: YaronKh@xxxxxxxxxxxxx [mailto:YaronKh@xxxxxxxxxxxxx] Sent: Tuesday, July 12, 2005 4:26 PM To: php-general@xxxxxxxxxxxxx Subject: Number of users Hello all, I have some questions and I hope someone could answer them 1. Is there a way to find out how many users currently browsing pages at my web site? 2. If I write down the IP of a user that log on my web site, can I check later if the IP still browsing pages at my web site or if he had left my website? Thanks yaron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php