RE: [PHP] @session_start generates a new session_id

From: Date: Wed, 27 Oct 2004 19:38:03 +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-200468@lists.php.net to get a copy of this message
I'll try that, thanks a lot. -----Original Message----- From: Reinhart Viane [mailto:rv@domos.be] Sent: Tuesday, October 26, 2004 12:49 PM To: 'Lizet Peña de Sola'; php-general@lists.php.net Subject: RE: [PHP] @session_start generates a new session_id 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#200468) next »