how to kill session id without closing the window?
| From: | afan at afan dot net | Date: | Thu, 06 Apr 2006 19:19:08 +0000 |
| Subject: | how to kill session id without closing the window? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-233400@lists.php.net to get a copy of this message | ||
Hi to all,
session_start();
$_SESSION['sessid'] = session_id;
echo $_SESSION['sessid']; will show e.g. 699e506bd42ea402985dce24a0ef9
After:
unset($_SESSION['sessid']);
$_SESSION['sessid'] = session_id();
I'm getting the same SID again.
I tried with session_unregister() and session_destroy() but same result.
How can I create new, other sesssion id (after I, for example, click on
'Log Out' button) without closing window?
Thanks for any help.