note 50556 deleted from function.session-regenerate-id by didou

From: Date: Thu, 03 Mar 2005 17:05:21 +0000
Subject: note 50556 deleted from function.session-regenerate-id by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-85871@lists.php.net to get a copy of this message
Note Submitter: s.j.eggen (at) phys.uu.nl Reason: bad code ---- I am using debian, so my version of PHP4 does not include session_regenerate_id(). I saw the snippet for generating such an id manualy, but there's an easier way: unset($_COOKIE[session_name()]); You can then either start a new session with: session_start(); in which case you're sure you're not using a preexisting session, or continue an old session any other way with: session_id($session_string); session_start(); I also hope this note is instructive about the way session work, because they remain terribly confusing. :)

« previous php.notes (#85871) next »