Re: Array in Session-Vars?

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: Array in Session-Vars?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-46329@lists.php.net to get a copy of this message
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 should work. > > and ofcourse to retrieve it do reverse work by unserializing the variable > > back to the array and use it. > > > > - > > $a = Array("asdad", "adasd", "123123", "6adas f > > g"); > > echo ($s = serialize($a)) . "<br>"; > > // you can session_register($s) > > unset($a); > > // in file2 you can retrieve $s and make $a back again: > > $a = unserialize($s); > > var_dump($a); > > > > - > > -elias > > > Hi, > > Never tried it either, but from previous postings I remember you > should just be able to use array's with no prob's. > > (4 all I can remember i.e.) > > * R&zE: > > *************************** > ** Renze Munnik > ** > ** E: renze@datalink.nl > ** M: +31 6 218 111 43 > *************************** > > -- Michael Champagne, Software Engineer Capital Institutional Services, Inc. wk: mchampagne@capis.com hm: mchamp@texas.net ****************************************************************** This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction, unless specifically agreed otherwise. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect the views or opinions of Capital Institutional Services, Inc. Capital Institutional Services, Inc. accepts no liability for any errors or omissions arising as a result of transmission. Use of this communication by other than intended recipients is prohibited. ******************************************************************

« previous php.general (#46329) next »