Page 1 of 1
session_id()
Posted: Tue Jul 01, 2003 5:21 am
by Czar
I have a problem with session id's. When i finish the session with session_unset() and session_destroy() and start a new session after that, the session id is still same. Why? Session vars are registered like $_SESSION['var1']. This is annoying...
Posted: Tue Jul 01, 2003 5:46 am
by Czar
Got a solution from another post.
Code: Select all
<?php
$_SESSION = array();
unset($_COOKIE[session_name()]);
session_destroy();
session_start();
?>
Weird, how session_destroy doesn't really destroy the session variables... (?)
Is this a featur in PHP or a flaw?