note 70184 added to ref.session
| From: | klenwell at gmail dot com | Date: | Fri, 06 Oct 2006 00:39:03 +0000 |
| Subject: | note 70184 added to ref.session | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-118107@lists.php.net to get a copy of this message | ||
In response to marou at marou dot com responding to fondman at hotmail dot com regarding local
variables overwriting SESSION variables:
I was encountering this same problem. On my local PHP 5 server, no problem. Remote host's
server running PHP 4: major headaches.
Initially, I concluded it was some kind of bug in PHP 4 and older. However, according to the devs,
this is not a bug (see http://bugs.php.net/bug.php?id=36366). Apparently,
this is intended behavior when register_globals is set to ON.
But, as noted elsewhere in the docs, register_globals cannot be turned off at runtime using
ini_set(). However, you can use a local .htaccess or php.ini to override the setting. This site
helped me solve the problem:
http://www.nyphp.org/phundamentals/ini.php
Full details of my experience with this issue can be found here:
http://tinyurl.com/o6p7y
----
Server IP: 66.163.161.117
Probable Submitter: 66.18.140.124
----
Manual Page -- http://www.php.net/manual/en/ref.session.php
Edit -- https://master.php.net/note/edit/70184
Del: integrated -- https://master.php.net/note/delete/70184/integrated
Del: useless -- https://master.php.net/note/delete/70184/useless
Del: bad code -- https://master.php.net/note/delete/70184/bad+code
Del: spam -- https://master.php.net/note/delete/70184/spam
Del: non-english -- https://master.php.net/note/delete/70184/non-english
Del: in docs -- https://master.php.net/note/delete/70184/in+docs
Del: other reasons-- https://master.php.net/note/delete/70184
Reject -- https://master.php.net/note/reject/70184
Search -- https://master.php.net/manage/user-notes.php