[thelist] Saving and Destroying Session IDs and Vars with PHP5

Pringle, Ron RPringle at aurora-il.org
Tue Mar 6 15:38:38 CST 2007


Kasimir wrote:


Pringle, Ron scribeva in 06/03/2007 16:26:
> After a successful submission, I want to destroy all the session variables

Or actually you want to unset them:

foreach($_SESSION as $k => $v) {
    unset($_SESSION[$k]);
}


If you want to keep the session, just keep it - no need to destroy or 
unset the session itself.

.k
-- 

Thanks. I tried a version of that with no success, but I'll take another look at it.

Ron



More information about the thelist mailing list