|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-02-24 04:03 UTC] ng4rrjanbiah at rediffmail dot com
For me, register_globals = on; $_SESSION['foo'] = 'xxx'; ...Then form operations that post few data including $_POST['foo']='yyy' ...Now the value of $_SESSION['foo'] is set to 'yyy' My server's PHP version is 4.3.0...The above bug is really a big problem for me...I've developed a part of the module for our big project...I've developed with the idea of register_globals=off, but other people develped with the idea of register_globals=on...And in the server, they've put it with register_globals=on... and I've started experiencing the above problem... It worked fine on my local system (PHP4.2.3) with register_globals=off. As, the module is related to login & session, it is a very big problem for me. Any workaround? -R. Rajesh Jeba Anbiah PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 00:00:02 2025 UTC |
Yes, don't use register_globals=On. Doing $_SESSION['foo'] is basically same as doing session_register('foo'); and when register_globals=On, $foo in global context will be same as in $_SESSION['foo']. Not a bug.