register_globals

From: Date: Fri, 12 Apr 2002 17:13:19 +0000
Subject: register_globals
Groups: php.general 
Request: Send a blank email to php-general+get-92792@lists.php.net to get a copy of this message
Hello, in php 4.0.6 on the begin of the script include file called config.php. In config file i have ini_set('register_globals', 'off'); i setup session via session_register('variable') and redirect to another page, where i include the same config (config.php) and call session_start(); but when i make print_r($HTTP_SESSION_VARS); array is empty. When i disable line with ini_set in config file all is ok. It's bug ? I must using two versions of PHP 4.0.6 and 4.1.2. On 4.1.2 is everything OK but on 4.0.6 not. So where is problem ? In myself or between keyboard and chair (that's myself too :)) Regards Michal Dvoracek michal.dvoracek@capitol.cz

« previous php.general (#92792) next »