session_id()
Moderator: General Moderators
session_id()
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...
Got a solution from another post.
Weird, how session_destroy doesn't really destroy the session variables... (?)
Is this a featur in PHP or a flaw?
Code: Select all
<?php
$_SESSION = array();
unset($_COOKIE[session_name()]);
session_destroy();
session_start();
?>Is this a featur in PHP or a flaw?