RE: [PHP-WIN] Problem with sessions!

From: Date: Thu, 26 Oct 2000 00:25:25 +0000
Subject: RE: [PHP-WIN] Problem with sessions!
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-3488@lists.php.net to get a copy of this message
Hi Mikael, > So the only thing i know to destroy the session is to close the browser! > > I start the session with > > session_start(); > > and then i register a bunch of variables the first time the page > is accessed.. > and when all output is done i do > > session_unset(); > session_destroy(); > exit; > > And close the window (but there's another window behind it) > Please help.. i've tried basically everything but i can't seem to > solve it!!! you could use this method to kill the session... <? session_destroy(); // snipp if (strtolower(session_module_name) == 'files') { @unlink(get_cfg_var('session.save_path').'/sess_'.session_id()); } ?> Thanks to Daniel T. Gorski who showed me this trick... Cheers, Matthias

« previous php.windows (#3488) next »