niche Posted September 25, 2010 Share Posted September 25, 2010 How do you clear $_SESSIONS?. I tried session_destroy(), but echo var_dump($_SESSION) . '<br/>'; produces:array(4) { ["mycheckbox1"]=> string(2) "on" ["submit"]=> string(6) "submit" ["mycheckbox2"]=> string(2) "on" ["mycheckbox3"]=> string(2) "on" } Link to comment Share on other sites More sharing options...
justsomeguy Posted September 26, 2010 Share Posted September 26, 2010 Using session_destroy probably doesn't clear $_SESSION for the page you're on. If you refresh it should be empty though. You can also use unset to clear individual variables. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.