With register_globals off, try this:
<?php
session_start();
// Try either one of these to assign the session var.
$_SESSION['barney'] = "A big purple dinosaur";
$HTTP_SESSION_VARS['barney'] = "A big purple dinosaur";
header('Location: /');
exit;
?>
<?php
// Another page...
session_start();
// Try either one of these to echo the session var.
echo($_SESSION['barney']);
echo($HTTP_SESSION_VARS['barney']);
?>
Kirk
> -----Original Message-----
> From: Norman Zhang [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 16, 2002 12:15 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] session_is_registered
>
>
> Sorry. I'm still getting empty output. Are there some global
> variables that
> I must set in php.ini? phpinfo() tells me that I have
>
> register_globals off
> Session Support enabled
> session.auto_start off
> session.cache_limiter nocache
> session.cookie_secure off
>
> Regards,
> Norman
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php