sessions on 4.3.2, register_globals On
| From: | Jason Jacobs | Date: | Tue, 26 Aug 2003 19:45:17 +0000 |
| Subject: | sessions on 4.3.2, register_globals On | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-160846@lists.php.net to get a copy of this message | ||
Hi all. I am switching a site I built to a new server, and the old site was written with
register_globals on. I believe the php version was the same, but I'm not sure (and I
can't check). The way I understand it, for older versions of php, one had to use
session_register($foo) and could use the session variable $foo in other pages. In 4.3, the standard
is to use $_SESSION['foo'] to register and use the variable.
Now, I would imagine that in 4.3.2 with register_globals on my code should still work. In fact, it
does not work unless I use $_SESION['foo']. Why is this? Is there a way to make my code
work without editing every page? Please tell me I don't have to go in and redo my session (and
form, for that matter) variables...
Thanks for your help.
-jason
------------------------------
web developer
jjwd.net