Re: who is on the page?

From: Date: Sun, 23 Mar 2003 20:47:51 +0000
Subject: Re: who is on the page?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-140777@lists.php.net to get a copy of this message
What you might want to try is to set a cookie when the user first enters the page, but set it's length to 5 minutes. Then everytime the cookie is resent to the page you count it as a user. But if they leave, then the cookie destroy's itself. You can have the cookie reset it's self, or set to when ever the browser closes. But thats up to you ----- Original Message ----- From: "Oliver Witt" <oliverwitt@t-online.de> To: <php-general@lists.php.net> Sent: Monday, March 24, 2003 6:23 AM Subject: [PHP] who is on the page? > Hi everybody, > I've been looking for a script to determine who is on my page (people > have to log in). So far, I've been using a script that updates the time > in the database continuously as long as the person is on the page. That > way, the script could determine whether the user is still online or not. > However, this script has way too many queries and uses too much server > resources. Is there anything else? I'm wondering if the > connection_status() function would help in any way... > thx, > Olli > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > >

« previous php.general (#140777) next »