cant override session variables

From: Date: Mon, 25 Oct 2004 14:13:02 +0000
Subject: cant override session variables
Groups: php.general 
Request: Send a blank email to php-general+get-200256@lists.php.net to get a copy of this message
Hi all, This is drving me insane... I have a logout script, logout.php: <? $_SESSION['validlogin']=""; $_SESSION['username']=""; $_SESSION['password']=""; unset($_SESSION['validlogin']); unset($_SESSION['username']); unset($_SESSION['password']); session_unset(); print("username=".$_SESSION['username']); print("password=".$_SESSION['password']); if(session_id()){ session_destroy();} ?> that effectively cleans the session variables. However, when i try to set them again, they won't take the new values: <? session_start(); $_SESSION['validlogin']=true; $_SESSION['username']=$username; $_SESSION['password']=$password; print("username_session ".$_SESSION['username']); exit(); ?> will print: username_session blank... I know globals are on...what's a happening? why the variables are cleaned fine why there's no override? tia, lizet

« previous php.general (#200256) next »