----- Original Message -----
From: "ulf sundin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 09, 2003 1:00 PM
Subject: Re: [PHP] session data missing
> ok, so now the variable names are registred and stored in the file. But
> without values.
> check this:
>
> --firstpage.php----
> session_start()
> session_register('foo');
> $HTTP_SESSION_VARS['foo'] = 'bar';
> echo $HTTP_SESSION_VARS['foo']; //outputs bar;
>
> transport by a href to:
> ----secondpage.php----
> session_start();
> echo $HTTP_SESSION_VARS['foo']; //outputs nothing
>
> ---
> checking the contents of the file called /tmp/sess_{session_id}:
> !foo|
(snip)
Make a choice here..
=> session_register('foo');
=> $HTTP_SESSION_VARS['foo'] = 'bar';
Use either the session_register() function or the session global array. Not
both.
- Kevin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php