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" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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
>



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

Reply via email to