Problems with session_destroy()
| From: | Sviss Cobazor | Date: | Sat, 16 Mar 2002 11:21:44 +0000 |
| Subject: | Problems with session_destroy() | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-12664@lists.php.net to get a copy of this message | ||
Hello NG.
I'm trying to clear some session variables and destroy the session but it
doesn't work. Any suggestions?
My code is simple:
session_unregister('var1');
session_unregister('var2');
session_unregister('var3');
session_unregister('var3');
session_unregister('var4');
session_unregister('var5');
session_destroy();
I've also tried:
$_SESSION['var1'] = null;
$_SESSION['var2'] = null;
$_SESSION['var3'] = null;
$_SESSION['var3'] = null;
$_SESSION['var4'] = null;
$_SESSION['var5'] = null;
session_destroy();
Doesn't work either.
Note: I'm using Win98/PHP 4.1.1/Apache. Session-auto-start is turned on
(should it be off?).
~ Sviss