Re: session handling

From: Date: Thu, 09 Mar 2006 16:44:58 +0000
Subject: Re: session handling
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-231723@lists.php.net to get a copy of this message
One important question is: You're using register_globals equal on or off? suresh kumar wrote: > i am having one problem in session handling. > I am having 2 files,login page and hame page. > when user enterd user name and password in login page > .i used session to store the user id .in my second > home page.i retrieve the user id.now i want the user > id to be availble in my thrid page.plz help me.this is > my code. > > login.php > session_start(); > $ID=$userid; > session_register("ID"); > > homepage.php > session_start(): > echo $ID //this is working fine > > > > thirdpage.php > session_start(); > echo $ID //not working > > > > i am looking reply from u > > > > > > __________________________________________________________ > Yahoo! India Matrimony: Find your partner now. Go to > http://yahoo.shaadi.com

« previous php.general (#231723) next »