I’m simply looking to loop through all current session variables and if the session variable name begins with ‘tmp’ then I want to unset the variable.
I would do it as follows:
foreach($session as $sv){
if(substr($sv,0,3)=='tmp'){
unset($sv);
}
}
Just not sure how to get all the current session variables into an array to start with.
Thanks in advance!
What’s the problem with
?