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/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php