Do the same thing your doing, but insert the following after where it should
be set to see if it was:
print_r($HTTP_SESSION_VARS);
If it worked, you'll see it.
If not, you'll see it. Then you can progress from there.
--
Plutarck
Should be working on something...
...but forgot what it was.
I never tried to use arrays in session variables,
but i believe if you try to serialize the array first and then register the
serialized value as session value it should work.
and ofcourse to retrieve it do reverse work by unserializing the variable
back to the array and use it.
-
$a =
elias wrote:
I never tried to use arrays in session variables,
but i believe if you try to serialize the array first and then register the
serialized value as session value it should work.
and ofcourse to retrieve it do reverse work by unserializing the variable
back to the array and use
udolf Visagie
[EMAIL PROTECTED]
-Original Message-
From: Renze Munnik [mailto:[EMAIL PROTECTED]]
Sent: 30 March 2001 10:38
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Array in Session-Vars?
elias wrote:
I never tried to use arrays in session variables,
but i believe if you try to seria
Array and Object are serialized by session module.
Therefore, PHP4 session can handle both Array and Object seamlessly. (i.e. You
don't have to do anything)
Make sure you define Class (include class def) before starting session. Don't
forget re-initialize resources such as database link also.
Simply registering the array works for me. I don't have to monkey with any
serializing or anything.
Mike
elias wrote:
I never tried to use arrays in session variables,
but i believe if you try to serialize the array first and then register the
serialized value as session value it
6 matches
Mail list logo