Re: session bug or feature

From: Date: Fri, 08 Aug 2003 16:18:20 +0000
Subject: Re: session bug or feature
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-158879@lists.php.net to get a copy of this message
* Thus wrote Christian Calloway (callowaylc@yahoo.com): > register_global is currently on. The problem is, I am hacking into someone > else's (awful awful) code, and if I turned off register_globals, the whole > application would go kaput. I am not even using the old session_x functions, > just the new associative session array $_SESSION. What I would do would turn off register_globals and then use import_request_variables on all the pages. You could set up a auto_prepend_file to be include for all the files. This would make things transparent and protect your $_SESSION vars. http://php.net/import-request-variables Curt -- "I used to think I was indecisive, but now I'm not so sure."

« previous php.general (#158879) next »