Re: [PHP4BETA] Help! I can't modify session variables once they're set

From: Date: Sat, 04 Mar 2000 02:56:19 +0000
Subject: Re: [PHP4BETA] Help! I can't modify session variables once they're set
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-11501@lists.php.net to get a copy of this message
Tony, You need to do it this way: session_register("playerLeagueId"); $playerLeagueId = $leagueId; Tony Zito wrote: > Hi all, > > Hope you can help me with this problem that's currently destroying my > Friday night. Once I session_register a variable and set it, I'm unable to > modify it, even if I unregister and register again. This can't be right, > although the annotated manual lists a few people complaining about this > very problem. > > Here's a code snippet: > > session_register($playerLeagueId); > $playerLeagueId = $leagueId; > > The first time thru it works fine, but once the value is set, it can't be > reset (unless I restart my browser.) > > What gives? Can anyone help me out? It would be _greatly_ appreciated. > > thanks, > t. > > ........................................................... > .. Tony Zito > .. Director of Production / Bottle Rocket, Inc. > .. 212 352 2040 x230 > .. http://www.bottlerocket.com/ > > -- > PHP 4.0 Beta Mailing List <http://www.php.net/version4/> > To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net > For additional commands, e-mail: php4beta-help@lists.php.net > To contact the list administrators, e-mail: php4beta-admin@lists.php.net > > ------------------------------------------------------------------------- > This email server is running an evaluation copy of the MailShield anti- > spam software. Please contact your email administrator if you have any > questions about this message. MailShield product info: www.mailshield.com

« previous php.version4 (#11501) next »