Re: getting session data

From: Date: Fri, 26 Apr 2002 21:03:09 +0000
Subject: Re: getting session data
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-94814@lists.php.net to get a copy of this message
To access session variables you need to use session_start() first. Deval Parikh wrote:
hi, IF I am using this code in one script... a.php --------- <?php $userip = $REMOTE_ADDR; session_name("sessiontest"); session_register("userip"); ?> so how can i use above session data in another script...like this way..??? b.php --------- <?php session_start(); echo $userip; ?> I can not got the result..please correct me. __________________________________________________ Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/


« previous php.general (#94814) next »