Re: unable to register session variables
| From: | Yves Daemen | Date: | Thu, 23 May 2002 16:11:31 +0000 |
| Subject: | Re: unable to register session variables | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-98934@lists.php.net to get a copy of this message | ||
First make sure you have done a session_start()
If that's not the problem, why not trying this syntax
$_SESSION["layer"] = $layer;
Think it's easier when looking at your session_vars as if it was an array,
which it is actually...
"Pushkar Pradhan" <pushkar@ERC.MsState.Edu> schreef in bericht
news:Pine.GSO.4.44.0205221214500.20129-100000@Titan.ERC.MsState.Edu...
> I am following example 4 on
> http://www.php.net/manual/en/ref.session.php
> code:
> if(!session_is_registered("layer") ) {
> session_register("layer");
> }
> I tried both "" and ''s.
> Doing a phpinfo() on the pg. doesn't show any $HTTP_SESSION_VARS
>
> I've both track_vars and register_globals enabled in my php.ini
> Any idea what's wrong? Thanks,
>
> -Pushkar S. Pradhan
>