shedokan Posted July 6, 2009 Share Posted July 6, 2009 I created the array $_SESSION['userinfo'] and php created a variable with the same name called $userinfo, why? and how can I stop it? I can't access to php.ini so a method in php please. thanks. Link to comment https://forums.phpfreaks.com/topic/164931-why-php-creates-variables-for-_session-keys/ Share on other sites More sharing options...
PFMaBiSmAd Posted July 6, 2009 Share Posted July 6, 2009 http://www.phpfreaks.com/forums/index.php/topic,259271.msg1219979.html#msg1219979 If php is running as an Apache Module, you can turn them off in a .htaccess file (Daniel0 posted an example in the thread I just linked to.) If php is running as a CGI application you can turn them off in a local php.ini file using register_globals = Off Link to comment https://forums.phpfreaks.com/topic/164931-why-php-creates-variables-for-_session-keys/#findComment-869712 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.