RE: [PHP] @session_start generates a new session_id

From: Date: Tue, 26 Oct 2004 16:48:55 +0000
Subject: RE: [PHP] @session_start generates a new session_id
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-200374@lists.php.net to get a copy of this message
Instead of: <? $_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();} ?> Try this: //unregister the sessions $_SESSION['validlogin']=""; $_SESSION['username']=""; $_SESSION['password']=""; //destroy the sessions array $_SESSION = array(); //destroy the session session_destroy(); Greetings Reinhart Viane -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#200374) next »