Re: Session confusion again :( - Thanks!

From: Date: Wed, 14 Apr 2004 19:17:26 +0000
Subject: Re: Session confusion again :( - Thanks!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-183366@lists.php.net to get a copy of this message
Yes in php.ini. I never bothered turning off as (a) I did not take the time to understand the implications and (b) my project is only for internal network use anyway. So I went and turned them off. Now of course my pages don't work properly. I guess I have to go through all my code and address the variables properly ie. $_POST and $_SESSION? Thanks! "Dennis Gearon" <gearond@fireserve.net> wrote in message news:407D8AC0.5000705@fireserve.net... > "'Chris W. Parker'" <cparker@swatgear.com> elucidated: > > >Thanks guys but I have register globals ON so once the session variable is > >defined I should be able to address it without specifying $_SESSION ? > > > WHERE do you have it on? Most sites now have it turned off for VERY valid security reasons. If you are turning it on in your prepend file - Sorry, too late. > > The only two places to turn it back on, to my knowledge, is in your ini file for the site, or your .htaccess file as a directive. Only those two places are before the GPC processing.

« previous php.general (#183366) next »