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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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
>
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to