RE: [PHP] RE: connection_aborted was [PHP] trikky authentication question
| From: | electroteque | Date: | Sun, 01 Jun 2003 10:12:32 +0000 |
| Subject: | RE: [PHP] RE: connection_aborted was [PHP] trikky authentication question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-149720@lists.php.net to get a copy of this message | ||
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:rasmus@lerdorf.com]
Sent: Sunday, June 01, 2003 5:46 PM
To: daniel@electroteque.org
Cc: php-general@lists.php.net
Subject: Re: [PHP] RE: connection_aborted was [PHP] trikky
authentication question
On Sun, 1 Jun 2003 daniel@electroteque.org 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