Session values not clearing
I think this may be something with my local test environment as I had a problem like this before but when I put it up on the live host it worked (I don't have hosting for this site yet). I can not get my session values to clear. Here is the code I have:
<?php
if (isset($_POST["logoutButton"])){
// WA_ClearSession
$clearAll = TRUE;
$clearThese = explode(",","");
if($clearAll){
foreach ($_SESSION as $key => $value){
unset($_SESSION[$key]);
}
}
else{
foreach($clearThese as $value){
unset($_SESSION[$value]);
}
}
}
?>