[SOLVED] Sessions - Gotta Be An Easy One
Posted: Mon Aug 30, 2004 7:20 pm
Hey Guys,
Me again.
I am now trying to use sessions across multiple pages and then kill? unset? or destroy? the session... I just get rid of the SID at the last page so when we go back to the first page it will create a new SID. Just like closing the browser and reopening.
For some reason it just ain't happening.
Below isn't my code but the methods I am using for the sessions.
Thanks a million guys.
Me again.
I am now trying to use sessions across multiple pages and then kill? unset? or destroy? the session... I just get rid of the SID at the last page so when we go back to the first page it will create a new SID. Just like closing the browser and reopening.
For some reason it just ain't happening.
Below isn't my code but the methods I am using for the sessions.
Code: Select all
<?php
session_start(); // using this to start my session on each page - at the top before any browser output
$some_var = $_SESSION['some_var']; // setting session variables like this
session_unset(); // get rid of all the sessions values
$_SESSION = array();
session_destroy(); // destroy session - won't that get rid of the SID???
?>