Re: session_start() part II
| From: | Renze Munnik | Date: | Mon, 13 Aug 2001 15:09:56 +0000 |
| Subject: | Re: session_start() part II | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-62446@lists.php.net to get a copy of this message | ||
On Mon, Aug 13, 2001 at 04:57:08PM +0200, Aniceto Lopez wrote:
> 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
Did you use session_start() in the file where you try to output data
from the session?
--
* R&zE:
-- »»»»»»»»»»»»»»»»»»»»»»»»
-- Renze Munnik
-- DataLink BV
--
-- E: renze@datalink.nl
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
-- H: +31 23 5516190
--
-- Stationsplein 82
-- 2011 LM HAARLEM
--
-- http://www.datalink.nl
-- ««««««««««««««««««««««««