Session variables getting over-written
Posted by: cedric
Posted on: 2006-08-07 19:34:00
I'm running PHP4 (as CGI) and have recently noticed a problem with my session variables that wasn't there a week ago. I've got a bunch of data stored in session (eg. $_SESSION['stuff']) and noticed that any PHP code that sets a variable with the same name as the index (eg. $stuff) is wiping-out the session variable. Does anyone know if there is a PHP setting that is causing this (like register_globals)? I've tried changing several PHP settings using the ini_set method without any luck. Could there have been a change in the PHP4 set-up on DreamHost that might have caused this to start happening? Any help or suggestions would be very appreciated.