Re: Array in Session-Vars?

From: Date: Fri, 30 Mar 2001 09:30:11 +0000
Subject: Re: Array in Session-Vars?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-46275@lists.php.net to get a copy of this message
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. How about read http://www.zend.com/zend/tut/ There are useful tutorials. -- Yasuo Ohgaki ""Thomas H臠er"" <thomas.haeger@onsoft.de> wrote in message news:9a1e71$eun$1@toye.p.sourceforge.net... > 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 with count($HTTP_SESSION_VARS["xy"]) , > there are only one entry. > > > Have somebody an idea? > > Thanks, > > Thomas > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#46275) next »