> -Original Message-
> From: Leston Drake [mailto:[EMAIL PROTECTED]]
> Sent: 18 June 2002 18:48
>
> I am unable to retrieve session variables on my local server.
[snp]
> On another server
> (http://www.lpsoftware.com/phptest/test5.php) it works as
> expected. But I can't figure out wh
[EMAIL PROTECTED]]
> Sent: Tuesday, June 18, 2002 3:30 PM
> To: Johnson, Kirk
> Cc: [EMAIL PROTECTED]
> Subject: RE: [PHP] sessions trouble
>
>
>
> I am using PHP 4.1.2, which I assume supports the $_SESSION
> global array.
> I've tried ...sigh... using
is not, use $HTTP_SESSION_VARS[].
>
> > -Original Message-
> > From: Leston Drake [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, June 18, 2002 12:29 PM
> > To: Johnson, Kirk
> > Cc: [EMAIL PROTECTED]
> > Subject: RE: [PHP] sessions trouble
> >
> >
Is your version of PHP new enough to support the new $_SESSION[] array? If
it is not, use $HTTP_SESSION_VARS[].
> -Original Message-
> From: Leston Drake [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 18, 2002 12:29 PM
> To: Johnson, Kirk
> Cc: [EMAIL PROTECTED]
>
TECTED]>
>To: "Johnson, Kirk" <[EMAIL PROTECTED]>
>Cc: <[EMAIL PROTECTED]>
>Sent: Tuesday, June 18, 2002 1:28 PM
>Subject: RE: [PHP] sessions trouble
>
>
> >
> > I have register_globals=Off (which is what I prefer to program for).
> > But i
;
Sent: Tuesday, June 18, 2002 1:28 PM
Subject: RE: [PHP] sessions trouble
>
> I have register_globals=Off (which is what I prefer to program for).
> But if I change register_globals to On, and use the session_register()
> function, it works.
> With register_globals Off, using $_SESSIO
I have register_globals=Off (which is what I prefer to program for).
But if I change register_globals to On, and use the session_register()
function, it works.
With register_globals Off, using $_SESSION doesn't work.
I thought that $_SESSION would work regardless of whether register_globals
was
Actually, I've tried it both ways (register_globals=On and
register_globals=Off).
Same result with either setting.
At 12:19 PM 6/18/2002, you wrote:
>Check the register_globals setting in php.ini. It looks like it is "on" on
>the problem server. If so, then you have two choices:
>1. Turn it "of
Check the register_globals setting in php.ini. It looks like it is "on" on
the problem server. If so, then you have two choices:
1. Turn it "off"
2. Change your code to this style:
session_start();
$node = 10.2;
session_register('node');
echo $node;
Kirk
> -Original Message-
> From: Les
9 matches
Mail list logo