Sorry it still does not work. Can it be because I have HEADER(Location: ...)
redirection after the session_registered('var1')?

Regards,
Norman

"Oliver Beddows" <[EMAIL PROTECTED]> wrote in message
20020412235134.QNTP29761.mta05-svc.ntlworld.com@there">news:20020412235134.QNTP29761.mta05-svc.ntlworld.com@there...
On Saturday 13 April 2002 12:01 am, you wrote:
> Hi,
>
> If I have register_globals=off, how do I pass session variables? I tried
> session_register("var1"). session_is_registered("var1") appears
successful,
> but if I tried to echo the $var1". Nothing shows. How do I pass session
> variables?
>
> Thanks,
> Norman

Try this:
<?php echo($_SESSION['var1']); ?>

Also read the manual for more information on session handling functions.
http://www.php.net/manual/en/ref.session.php

Regards,
Oliver.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to