note 6193 deleted from session_destroy by ronabop

From: Date: Fri, 18 Aug 2000 03:33:02 +0000
Subject: note 6193 deleted from session_destroy by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-2280@lists.php.net to get a copy of this message
(in re: to bug id #5231). <br> I guess what you want is a way to be 100% sure that on certain occasions, session_start will definitively open a new session. <br> I find this to work well: <br> <pre> &lt;? // kick off any old session.. @session_start(); @session_destroy(); // open a brand new session... @session_start(); // blablabla get on with it. </pre> <br> The reason for opening the session twice is that it seems you cannot do session_destroy unless you already have it open. Or something. As someone mentioned earlier, session_start should take a parameter such as "create_new_session" or "resume_old_session".

« previous php.notes (#2280) next »