note 47962 added to function.session-regenerate-id

From: Date: Tue, 07 Dec 2004 11:15:49 +0000
Subject: note 47962 added to function.session-regenerate-id
Groups: php.notes 
Request: Send a blank email to php-notes+get-81483@lists.php.net to get a copy of this message
I have noticed, that session_regenerate_id() does not destroy the old session data (which belongs to the old session id). Is there any way to do so? I am using $_SESSION variable, so I have tried calling session_destroy() before session_regenerate_id(), but in this case the later function doesn't worked as expected. (I have got an empty session with the new id.) Session-storage independent solutions are welcome. Thanks, d43m0n. ---- Manual Page -- http://www.php.net/manual/en/function.session-regenerate-id.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+47962 Delete -- http://master.php.net/manage/user-notes.php?action=delete+47962&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47962&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47962&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47962&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47962&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47962&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+47962&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#81483) next »