Re: store array into session variable and get it back later

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Stut wrote:

> On 1 Oct 2008, at 11:40, Per Jessen wrote:
> 
>> Alain Roger wrote:
>>
>>> how can i get the 'name' value for each row in this session stored
>>> array ? thx.
>>
>> You haven't stored an array in the session, you've tried to store an
>> object of class CBreadcrumb. Which AFAIK isn't supported.
> 
> It is supported but you need to be careful about resources in the
> class. You can handle these gracefully using the __sleep and __wake
> magic methods. You also need to make sure the class has been loaded
> before starting the session or have an __autoload defined.

Thanks, I was not aware.  Very clear and succinct explanation, btw. 


/Per Jessen, Zürich


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux