Re: session_register() question

From: Date: Sat, 07 Oct 2000 00:05:34 +0000
Subject: Re: session_register() question
Groups: php.general 
Request: Send a blank email to php-general+get-19011@lists.php.net to get a copy of this message
I think it should be like this session_start(); session_register("x"); //It will register a space in your session. It should be done before u assign a value to the variable.. $x=123; --- "Marcel van Beurden (BCN)" <Marcel.van.Beurden@bcn.ericsson.se> wrote: > Hi there, > > I just started exploring the PHP4's session > capabilities. So far my expiriments didn't work that > well. One question that I have is whether I have to > use session_register() before or after giving a > value to a variable. > > So this: > > session_register("x"); > $x = 123; > > or this: > > $x = 123; > session_register("x"); > > What does session_register("x") do with my variable > ? Will it be erased or not ? I have seen examples > using both methods. > > Regards, > Marcel > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > php-general-unsubscribe@lists.php.net > For additional commands, e-mail: > php-general-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net > __________________________________________________ Do You Yahoo!? Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free! http://photos.yahoo.com/

« previous php.general (#19011) next »