Re: Getting Objects out of the $SESSION variable unscathed

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

 



On 12 Feb 2015 20:00, "JEofVA" <JEofVA@xxxxxxxxx> wrote:
>
> I'm having a problem getting my objects out of the $SESSION variable.  I
am storing an ordinal array of associate arrays where one of the associate
array elements is an object.  Unfortunately, when I pull it back out, the
object is "broken" with "__PHP_Incomplete_Class" errors.
>
> From what I can read this has something to do with 'serialization' -
i.e., the emerging object must be unserialized (
http://php.net/manual/en/function.unserialize.php). However, I can't get it
to work.
>
> Any tips on how that is done, or what I should do instead?

For those objects to be unserialised the class must already have been
included, otherwise PHP can't reconstruct it correctly. The error indicates
that the class does not exist.

-Stuart

-- 
Stuart Dallas
3ft9 Ltd
http://3ft9.com/

[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