Re: session_start() part II
| From: | Richard Baskett | Date: | Mon, 13 Aug 2001 15:54:09 +0000 |
| Subject: | Re: session_start() part II | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-62452@lists.php.net to get a copy of this message | ||
On the second page before the html tag write:
<?
session_name(mysession);
session_start();
?>
and then go ahead and echo your $myvar;
> ok, let's have this in the right place
> in a file named startsesion.php i.e.
>
> session_start();
> session_name("mysesion");
> session_register("myvar");
> $myvar = "whatever";
>
> a SID is generated autmaticaly
>
>
> I've been trying to echo the values of the var defined
> and the SID generated in another php file
>
> <?php echo ($sesionvar); ?> not working
> <?php echo ($HTTP_SESSION_VARS["myvar"] ); ?> not working
> <?php echo ($GLOBALS[$sesionvar]); ?> not working
> <?php echo session_name(); ?> not working
>
> <?php echo ($PHPSESSID); ?> not working
>
> how can I get this values?
>
> thanks, gracias
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>