Is session destory not enough to clean the session

Posted by Kamo on Stack Overflow See other posts from Stack Overflow or by Kamo
Published on 2010-05-29T22:53:54Z Indexed on 2010/05/29 23:02 UTC
Read the original article Hit count: 256

Filed under:
|
|
|
|

When the user clicks a logout button, I connect to a script that simply does this

session_destroy();
session_start();

I thought this would be enough to reset all $_SESSION variables such as $_SESSION['logged'] and $_SESSION['username'] but when I load the page again, it automatically logs me in as if the session is still active.

© Stack Overflow or respective owner

Related posts about php

Related posts about session