RE: [PHP-WIN] Has anyone gotten session_destroy() to actually wor k on Windows?

From: Date: Mon, 10 Dec 2001 13:21:50 +0000
Subject: RE: [PHP-WIN] Has anyone gotten session_destroy() to actually wor k on Windows?
Groups: php.windows 
Request: Send a blank email to php-windows+get-10823@lists.php.net to get a copy of this message
Thanks Egil, But I've tried everything and can not get it to work. I also can't get it to instantiate a session until I print the Session variables once to the HTML Page, then the session finally works. It's really strange (I just wish it were as stable as .Net). Thanks for your feedback... David -----Original Message----- From: Egil Helland [mailto:egil@egil.net] Sent: Friday, December 07, 2001 6:07 PM To: DAyres@lear.com; php-windows@lists.php.net Subject: Re: [PHP-WIN] Has anyone gotten session_destroy() to actually work on Windows? 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 //=- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net For additional commands, e-mail: php-windows-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.windows (#10823) next »