Hello,
I am unable to retrieve session variables on my local server.
I'm using some code like this to test it (thanks to Ed):
--
session_start();
echo : . $_SESSION[node] . br;
$_SESSION[node] = 10.2;
echo : . $_SESSION[node] . br;
Drake [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 18, 2002 11:48 AM
To: [EMAIL PROTECTED]
Subject: [PHP] sessions trouble
Hello,
I am unable to retrieve session variables on my local server.
I'm using some code like this to test it (thanks to Ed
. Change your code to this style:
session_start();
$node = 10.2;
session_register('node');
echo $node;
Kirk
-Original Message-
From: Leston Drake [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 18, 2002 11:48 AM
To: [EMAIL PROTECTED]
Subject: [PHP] sessions trouble
Hello
-Original Message-
From: Leston Drake [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 18, 2002 11:48 AM
To: [EMAIL PROTECTED]
Subject: [PHP] sessions trouble
Hello,
I am unable to retrieve session variables on my local server.
I'm using some code like this to test
: [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 $_SESSION doesn't work.
I thought that $_SESSION would work regardless
: [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 if I change register_globals to On, and use the session_register()
function, it works.
With register_globals Off, using
;
session_register('node');
echo $node;
Kirk
-Original Message-
From: Leston Drake [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 18, 2002 11:48 AM
To: [EMAIL PROTECTED]
Subject: [PHP] sessions trouble
Hello,
I am unable to retrieve session variables on my local
$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
I have register_globals=Off (which is what I prefer to program for).
But if I
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 $HTTP_SESSION_VARS, with the same result,
unfortunately
-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 why it
10 matches
Mail list logo