note 17365 added to function.session-id

From: Date: Wed, 05 Dec 2001 23:19:10 +0000
Subject: note 17365 added to function.session-id
Groups: php.notes 
Request: Send a blank email to php-notes+get-21652@lists.php.net to get a copy of this message
Some users have pointed out that when setting a new session id, it must be done before calling session_start().<br> While this is true you can also do:<br> session_destroy(); session_id($new_session_id); session_start();<br> And it should restore the session you want etc.<br> Jamie Burns, http://www.dynamicexpression.co.uk/ -- http://www.php.net/manual/en/function.session-id.php http://master.php.net/manage/user-notes.php?action=edit+17365 http://master.php.net/manage/user-notes.php?action=delete+17365 http://master.php.net/manage/user-notes.php?action=reject+17365

« previous php.notes (#21652) next »