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

tim hyperlinkage at gmail.com
Tue Mar 6 18:49:42 CST 2007


kasimir-k wrote:
> Or actually you want to unset them:
> 
> foreach($_SESSION as $k => $v) {
>     unset($_SESSION[$k]);
> }

Agreed.  Especially if it's only a certain set of session values you are 
trying to delete.  Just give them a prefix you can check for inside the 
loop.

Tim



More information about the thelist mailing list