Re: Sessions with register_globals = off
| From: | Mauricio Cuenca | Date: | Sat, 07 Sep 2002 15:17:30 +0000 |
| Subject: | Re: Sessions with register_globals = off | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-115604@lists.php.net to get a copy of this message | ||
Sessions are now being registered, but I have a problem unregistering them.
This is the code that I'm using to test it:
--------kill.php--------
session_start();
print("ID = ".$_SESSION['id']); //The value is printed
print("PERMISOS = ".$_SESSION['permisos']); //The value is printed
unset($_SESSION['id']);
unset($_SESSION['permisos']);
print("ID = ".$_SESSION['id']); //The value is NOT printed
print("PERMISOS = ".$_SESSION['permisos']); //The value is NOT printed
-------kill.php---------
If the page is reloaded, the result is exactly the same.
But if I keep reloading the page $_SESSION['id'] and $_SESSION['permisos']
have the same value. Is there any other way to unregister session variables
???
Thank you very much.
_____________________
Mauricio Cuenca
----- Original Message -----
From: "Daniel Guerrier" <dan_guerrier@yahoo.com>
To: "Mauricio Cuenca" <mauricio@aguapanela.com>; <php-general@lists.php.net>
Sent: Friday, September 06, 2002 2:11 PM
Subject: Re: [PHP] Sessions with register_globals = off
> Here you go
>
> http://www.zend.com/manual/function.session-is-registered.php