Why is it when I destroy a session and then create a new one right after it, the session_id's are exactly the same. Thought it would generate a new one :\
post your code here
<?php session_start(); $ses1 = session_id()."<br>"; session_destroy(); session_start(); $ses2 = session_id()."<br>"; echo $ses1; echo $ses2; ?>
My output was: 452e34ac7f338e87e4fc2251bbca8ba4 452e34ac7f338e87e4fc2251bbca8ba4
$ses1 = session_id()."<br>"; unset($ses1); session_destroy();
um I dont see how that effects the session... all thats doing is unsetting the variable... The session id from the first session and the second session are still the same...