Re: Updating session variables values during session

From: Date: Fri, 11 Oct 2002 09:31:38 +0000
Subject: Re: Updating session variables values during session
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-119619@lists.php.net to get a copy of this message
Same problem... Thanks. ------------------- Stéphane Pinel spinel@noos.fr iChat : s.pinel@mac.com Le 11/10/02 11:26, « Simon Taylor » <simon.taylor@afritol.co.za> a écrit : > Hiya, > Try using $_SESSION['variablename'] > To refer to session variables. > Cheers > Simon > > -----Original Message----- > From: Stéphane Pinel [mailto:spinel@noos.fr] > Sent: 11 October 2002 11:16 > To: php-general@lists.php.net > Subject: [PHP] Updating session variables values during session > > > Hi, > > PHP 4.1.X > > I'm trying, during the session time, to change the value of 2 session > variables: > > My first attempt was simply like this: > > $sess_client = $theClient; > $sess_ref_clientFact = $theRefClient; > > ...but following pages still get old values from the session variables. > > Then I tried this: > > session_unregister("sess_client"); > session_unregister("sess_ref_clientFact"); > $sess_client = $ClientName; > $sess_ref_clientFact = $ClientRef; > session_register("sess_client"); > session_register("sess_ref_clientFact"); > > Same, following pages get old values from these 2 session variables... > > I would appreciate if I could get some help ? > > Thanks. > > ------------------- > Stéphane Pinel > spinel@noos.fr > iChat : s.pinel@mac.com >

« previous php.general (#119619) next »