of course thats where i got the example from but it doesnt work

ignore_user_abort(true);
if (connection_aborted()) $this->db->query("UPDATE users SET logged_in=0
WHERE userID=$this->userID");

if i close the browser its not setting the fiel to 0 meaning they are logged
out
-----Original Message-----
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 01, 2003 5:46 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] RE: connection_aborted was [PHP] trikky
authentication question


On Sun, 1 Jun 2003 [EMAIL PROTECTED] wrote:
> how can i get this to work ??
>
> if (connection_aborted()) $this->db->query("UPDATE users SET logged_in=0
> WHERE userID=$this->userID");

Did you read the connection handling chapter in the manual?

http://www.php.net/manual/en/features.connection-handling.php

-Rasmus


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

Reply via email to