Re: session handling

From: Date: Sat, 16 Nov 2002 19:07:46 +0000
Subject: Re: session handling
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-124740@lists.php.net to get a copy of this message
Hey you may want to try in page2.php : session_start(); echo('{$_SESSION['abc']}'); Lee "Anjali Kaur" <kaur_anjali@yahoo.com> wrote in message news:20021116023613.17438.qmail@web14308.mail.yahoo.com... > i want to access some variables generated in one page > in all the other pages, so i thought of using > $_SESSION. > > what i did is : > > in page1.php i do: > > $temp = 'someValue'; > session_start(); > $_SESSION['abc'] = $temp; > > > in page2.php : > > session_start(); > echo($_SESSION['abc']); > > > but i am not able to get the value of abc. > > please help me out. i went thru the documentation > online but cudnt grasp much as to where i am going > wrong. > > thank you. > anjali. > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Web Hosting - Let the expert host your site > http://webhosting.yahoo.com

« previous php.general (#124740) next »