Re: [PHP4BETA] Is autoregister of HTTP_STATE_VARS possible?

From: Date: Tue, 07 Mar 2000 21:16:09 +0000
Subject: Re: [PHP4BETA] Is autoregister of HTTP_STATE_VARS possible?
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-11724@lists.php.net to get a copy of this message
On Tue, 07 Mar 2000, php@home.uh.nu wrote: > > On Tue, 07 Mar 2000, Shane Burrell wrote: > > > If $HTTP_STATE_VARS[] did a session_register for you at least when > > > register_globals=off and track_vars=on that would make migration easier. In > > > refering to global checkin I mean register_globals option in the php.ini. Is > > > using $HTTP_*_VARS with register_globals=off the best way to go? > > > > Automatically registering everything that's in $HTTP_STATE_VARS[] on > > register_globals=off might be possible. I need more feedback from people > > to see whether this is such a good idea. As far as your question, I > > don't quite understand what you mean. The best way is not obvious to me. > ----If we are going to have this feature of registering the $HTTP_*_VARS, > we should be given the option to turn this off. I don't want to bloat my > session files with unnecesarry information, especially for a site with a > lot of traffic. Maybe another .ini option to turn this off or on? > > Walt > I didn't suggest registering all $HTTP_*_VARS just $HTTP_STATE_VARS. Sorry for the confusion. : ) Basically what I was suggesting would do the following if register_global = off and track_vars = on the ini file. NOW: <?php session_register('count'); $HTTP_STATE_VARS['count'] = 1; ?> SUGGESTED: <?php $HTTP_STATE_VARS['count'] = 1; ?>

« previous php.version4 (#11724) next »