Hi,
I'm coding Php under register_global = off flag, but, most (all ?) of php
hosting companies use the "on" flag with their shared servers...
I spent too much time to finally discover that my sessions went mad because
the $_SESSION['pseudo'] was updated by a simple $pseudo = $row['pseudo']
(from the DB)...
It's ok when, on my local conf, i use it with the register_global = off, but
once uploaded online, on a shared server with register_global = on, sessions
goes mad... I use the built-in php session mechanism and the file where
information session is saved is updated in a wrong way because of this
mix...
Is there another way for me than avoid using same names with my $_SESSION
stuff and other local variables ?
Thanks a lot,
Arnaud
I'm coding Php under register_global = off flag, but, most (all ?) of php
hosting companies use the "on" flag with their shared servers...
I spent too much time to finally discover that my sessions went mad because
the $_SESSION['pseudo'] was updated by a simple $pseudo = $row['pseudo']
(from the DB)...
It's ok when, on my local conf, i use it with the register_global = off, but
once uploaded online, on a shared server with register_global = on, sessions
goes mad... I use the built-in php session mechanism and the file where
information session is saved is updated in a wrong way because of this
mix...
Is there another way for me than avoid using same names with my $_SESSION
stuff and other local variables ?
Thanks a lot,
Arnaud
Comment