Re: Sessions with register_globals = off
| From: | Erik Price | Date: | Fri, 26 Apr 2002 20:03:05 +0000 |
| Subject: | Re: Sessions with register_globals = off | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-94796@lists.php.net to get a copy of this message | ||
On Friday, April 26, 2002, at 03:16 PM, Padraig Kitterick wrote:
This is annoying as everyhwhere I read about sessions, Im told that if register_globals is off, I shouldnt use session_register(), all I need to do is: $HTTP_SESSION_VARS["myVar"] = $myVar;This is not what the documentation says. http://www.php.net/manual/en/ref.session.php You should use $_SESSION['myVar'] = $myVar; ---- Erik Price Web Developer Temp Media Lab, H.H. Brown pricee@hhbrown.com