Re: Request for new feature: $HTTP_SESSION_VARS when register_globals = on

From: Date: Fri, 06 Apr 2001 17:37:49 +0000
Subject: Re: Request for new feature: $HTTP_SESSION_VARS when register_globals = on
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-51059@lists.php.net to get a copy of this message
On Fri, 6 Apr 2001, Chuck Hagenbuch wrote: > Quoting Sascha Schumann <sascha@schumann.cx>: > > > >- but that does make it really > > > messy to write code that works with either setting. > > > > Yes. Feel free to propose a solution which solves your > > problem and which is compatible to existing scripts. > > What about adding session_set_var (and session_get_var, for symmetry) functions > to set and access session variables regardless of scope? It is simpler. We should just leave the array $HTTP_SESSION_VARS in the case when register_globals is on. Currently when the variables are registered they *are* removed from the $HTTP_SESSION_VARS array. I do not think this is the intended behaviour. The chance of breaking the existing scripts by having the session variables both as global and in the $HTTP_SESSION_VARS array are minimal. I do not think this is a new feature and just a bugfix... -- alex > > -chuck > > -- > Charles Hagenbuch, <chuck@horde.org> > Number of U.S. nuclear bombs lost in accidents and never recovered: 11 > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.dev (#51059) next »