Reset a Session ID.
Posted: Thu Feb 26, 2004 4:58 pm
I am trying to reset a session id. My thoughts were to do the following:
However, the output looks like this:
I am more or less just tinkering around; but if anyone else has successfully reset the session id without forcing the user to close the browser. I'd be interested to see how.
Code: Select all
session_unset();
session_start();
echo session_id().'-->1<BR>';
session_unset();
session_start();
echo session_id().'-->2<BR>';
session_unset();
session_start();
echo session_id().'-->3<BR>';Code: Select all
49b4d982aefe4a291e5a9d0815987a0c-->1
49b4d982aefe4a291e5a9d0815987a0c-->2
49b4d982aefe4a291e5a9d0815987a0c-->3
?>