Undefined variable: _SESSION
I have created a log out page where I have applied the "Clear Session Values" SB. The trigger is set to "before page load".
When I go to this page I get the following error message:
Notice: Undefined variable: _SESSION in C:\wamp\www\firth_web_works\logout.php on line 7
Here is the code added by this SB
<?php
if ("" == ""){
// WA_ClearSession
$clearAll = TRUE;
$clearThese = explode(",","");
if($clearAll){
foreach ($_SESSION as $key => $value){
unset($_SESSION[$key]);
}
}
else{
foreach($clearThese as $value){
unset($_SESSION[$value]);
}
}
}
?>