[PHP] array in Session-Vars?

2001-04-03 Thread Thomas Häger
Hi all, i need to use an array in a session variable. On a page i fill the Sessionvar : $HTTP_SESSION_VARS["xy"] []=$whatever (The var is registered with session_register("xy")) I mean that the entry would made at the end of the array, is it not so? But evrey time i proove the entries

Re: [PHP] array in Session-Vars?

2001-04-03 Thread Plutarck
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.

Re: [PHP] Array in Session-Vars?

2001-03-30 Thread elias
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 =

Re: [PHP] Array in Session-Vars?

2001-03-30 Thread Renze Munnik
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

RE: [PHP] Array in Session-Vars?

2001-03-30 Thread Rudolf Visagie
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

Re: [PHP] Array in Session-Vars?

2001-03-30 Thread Yasuo Ohgaki
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.

Re: [PHP] Array in Session-Vars?

2001-03-30 Thread Michael Champagne
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

[PHP] Array in Session-Vars?

2001-03-29 Thread Thomas Häger
Hi all, i need to use an array in a session variable. On a page i fill the Sessionvar : $HTTP_SESSION_VARS["xy"] []=$whatever (The var is registered with session_register("xy")) I mean that the entry would made at the end of the array, is it not so? But evrey time i proove the entries