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$BgH(Ber"" <[EMAIL PROTECTED]> wrote in message
9a1e71$eun$[EMAIL PROTECTED]">news:9a1e71$eun$[EMAIL PROTECTED]...
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
- [PHP] Array in Session-Vars? Thomas Häger
- Re: [PHP] Array in Session-Vars? elias
- Re: [PHP] Array in Session-Vars? Renze Munnik
- Re: [PHP] Array in Session-Vars? Michael Champagne
- RE: [PHP] Array in Session-Vars? Yasuo Ohgaki
- RE: [PHP] Array in Session-Vars? Rudolf Visagie
- [PHP] array in Session-Vars? Thomas Häger
- Re: [PHP] array in Session-Vars? Plutarck