I have this problem with sessions in PHP which I have never been able to comprehend!
I have the following code in a PHP file:
session_start();
$sid = session_id();
session_unset();
session_destroy();
echo $sid;
Logically every time the it should give me different session IDs cause obviously I call session_destroy()
but it just won't kill the session. It always gives me the same session ID!
Am I doing it wrong?