Re: Has anyone gotten session_destroy() to actually work on Windows?
| From: | Egil Helland | Date: | Fri, 07 Dec 2001 23:07:05 +0000 |
| Subject: | Re: Has anyone gotten session_destroy() to actually work on Windows? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-10799@lists.php.net to get a copy of this message | ||
On Fri, 7 Dec 2001 13:36:32 -0500, Ayres, David wrote:
>Okay, I'm going to throw my laptop through a window in a second!
>Why won't session_destroy() work? I can't be the only one with this
>problem.
>I know the session variables exist. I'm running PHP 4.0.6, anyone
>else ever have this problem? Please let me know if there's some
>sort of bug with this or something. Thanks!
>
Running 4.0.5 here, but session_destroy works just fine. Only thing
you need to do is to first initiate the session, with session_start,
probably you also want to empty up those vars with session_unset, and
the conclude the whole thing with session_destroy:
session_start();
session_unset();
session_destroy();
Works like a charm... :)
Regards,
EGil
-=//
Egil Helland / IKON AS - MCSE, Internet, Intranet
mailto:egil@egil.net http://egil.net
//=-