SESSION variable and register_globals
| From: | Mohanaraj | Date: | Mon, 10 Feb 2003 23:48:28 +0000 |
| Subject: | SESSION variable and register_globals | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-135031@lists.php.net to get a copy of this message | ||
Hello guys,
I have a few questions regarding the subject and was hoping you could help me
out.
1.If register_globals is on, then doing an unset($_SESSION["blah"]), to unset
a session variable will not work as the variable will be unset in that
particular instance but will be restored in next instance of that session.
Hence session_unregister("blah") also must be used to properly unset the
session with global_register on. Is this true ?
2.Furthermore, can the session be registered via the direct
assignment of $_SESSION["aaa"] = $someValue if register globals is on?
Thank you for your time.
Mohan