RE: [PHP] rectified - - problems with sessions

From: Date: Wed, 10 Oct 2001 14:47:55 +0000
Subject: RE: [PHP] rectified - - problems with sessions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-70677@lists.php.net to get a copy of this message
Is that me wrong or you should declare the session first and then assign a value to variable? Here: <? session_start(); session_register("value"); $value = 908; header("location: new location"); ?> Regards, Maxim Maletsky www.PHPBeginner.com > -----Original Message----- > From: sagar N Chand [mailto:sagarchand@yahoo.com] > Sent: mercoledì 10 ottobre 2001 16.49 > To: php > Subject: [PHP] rectified - - problems with sessions > > > hello all, > > the bug is in the php.ini file. i've to change the > > session.cookie_path = / > > before it was set to another location outside of my server. > > some times small bugs irritate a lot. i've been struggling > for this since 4-5 days. > > How nice it would be if php have good debugging or atleast > waring capabilites....... > > origina mail follows : > > this is second or third time i'm mailing this. please help me. > > > > hi all, > > i'm using a php4.0.6 with apache on win2k. when i register a > session and immediately if i redirect to another page the > session seems not to be registered. eg. <? session_start(); > $value = 908; session_register("value"); header("location : > new location"); ?> > > when i go to the new page i c that the session has not been > reigstered. > > but in case if i dont redirect from php rather use a html > redirection code like "click here to redirect" then it > worked. why ? <? session_start(); $value = 908; > session_register("value"); ?> > <a href="newlocation">click here to redirect</a> (this worked out ) > > any suggestions ? > > /sagar > // ------------------------------------ > // end of original mail > > check out for those small pits. > > /sagar > > >

« previous php.general (#70677) next »