ottimo, serviva anche a me

solo che a me non fa l'unset della sessione, mi da l'errore:

Notice: Undefined variable: _SESSION in c:\programmi\easyphp1-8\www\areatxt\aut.php on line 19

ecco il codice:

<?php
$userad=$_POST["userad"];
$passad=$_POST["passad"];
$login= false;

if ($passad == "xxx" and $userad == "xxx"){

session_start();
$login = true ;
}

// variabile da impostare su true o false con il login
if($login === true) {
$_SESSION['login'] = 'ok';
echo "<META HTTP-EQUIV=refresh CONTENT='0;URL=list.php'>";
}
else
{
unset($_SESSION['login']);
echo "<METAHTTP-EQUIV=refreshCONTENT='0;URL=index.html'>";

}
?>


dove sbaglio? grazie