Unsetting Session Variables

From: Date: Wed, 30 Oct 2002 14:31:38 +0000
Subject: Unsetting Session Variables
Groups: php.general 
Request: Send a blank email to php-general+get-122020@lists.php.net to get a copy of this message
Hi all, I am having problems unsetting Session Variables - where I know it should work. I have a form. It contains both links with GET variables, and also a POST form. They all go to the same next page. Page 2 simply clears all session variables, and then sets them based upon the contents of the GET or POST array. It then calls page 3 which displays information based on the SESSION variable contents. My problem is that a session variable does not seem to unset. I am using: unset ($_SESSION['variablename']); But this does not seem to destroy the session variable. (it is still available later in other scripts) What can I do? David Russell IT Support Manager Barloworld Optimus (Pty) Ltd Tel: +2711 444-7250 Fax: +2711 444-7256 e-mail: DavidR@BarloworldOptimus.com web: www.BarloworldOptimus.com

Attachment: [application/x-pkcs7-signature] smime.p7s
« previous php.general (#122020) next »