Re: problems with session_register()...

From: Date: Wed, 04 Apr 2001 09:53:32 +0000
Subject: Re: problems with session_register()...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-47004@lists.php.net to get a copy of this message
Try to use $HTTP_SESSION_VARS, it may work for you. There are many number of notes in Annotated PHP Manual. Some of them may help. By the way, you don't need to serialize Array/Object for PHP4 session. Regards, -- Yasuo Ohgaki "Christian Dechery" <lemming@vento.com.br> wrote in message news:5.0.0.25.2.20010402212529.00a62030@pop-gw.vento.com.br... > Why does one variable gets registered and the other don't (the order > doesn't alter anything.. I've tried)... > > <snip> > $script_total_time=(float)$total_time; > session_register("script_total_time"); > $step_times_array[$step]=$total_time; > $step_times=serialize($step_times_array); > //echo "step_times=\"$step_times\""; > session_register("step_times"); > </snip> > > after that (and there are no mentions to either of those vars after that), > these are the contents of the session-cookie: > script_total_time|d:4.8891049623489;!step_times| > > step_times simply doesn't get registered... > > BTW... the commented echo above outputs: > step_times="a:1:{s:8:"download";d:4.8891049623489;}" > > what is wrong with my code? > > ____________________________ > . Christian Dechery (lemming) > . http://www.tanamesa.com.br > . Gaita-L Owner / Web Developer >

« previous php.general (#47004) next »