Re: destroy session on close?
| From: | David Robley | Date: | Fri, 01 Feb 2002 00:07:12 +0000 |
| Subject: | Re: destroy session on close? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-83037@lists.php.net to get a copy of this message | ||
In article <20020131223421.40062.qmail@pb1.pair.com>, hwk@barrysworld.com
says...
> is there any way to destroy a session automaticly when a user closes down
> you page?
> And preferably perform an action like a database removal at the same time.
Have a look at the Connection Handling section of the manual, and the
functions register_shutdown_function() and onnection_aborted(). Seems
like they might do what you need.
--
David Robley
Temporary Kiwi!