session_start() part II
| From: | Aniceto Lopez | Date: | Mon, 13 Aug 2001 14:57:08 +0000 |
| Subject: | session_start() part II | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-62445@lists.php.net to get a copy of this message | ||
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