Re: Properly ending a session
| From: | Micha | Date: | Sun, 14 Jul 2002 09:08:40 +0000 |
| Subject: | Re: Properly ending a session | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-14758@lists.php.net to get a copy of this message | ||
You can use session_destroy(), this will delete the session (even from the
HD).
-micha
Matt Babineau wrote:
> How can I properly terminate a session? I am working on a login/logout
> system and I need to login as a different user for testing so I want to
> be able to log myself out. I am using session variables to indicate my
> user ID when logged in. Are there any specific methods to use to "log
> myself out"?
>
> Matt Babineau
> MCWD / CCFD
> -----------------------------------------
> e: <mailto:matt@criticalcode.com> matt@criticalcode.com
> p: 603.943.4237
> w: <http://www.criticalcode.com/>
> http://www.criticalcode.com
> PO BOX 601
> Manchester, NH 03105
>