Re: Storing objects in sessions recursively

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

 



Vincent, Jochem,

Thank you for replying.

The issue turned out to be my Article class took arguments in its constructor, which was unacceptable because the argument could not be serialized when being passed along during the session.

By adjusting my object so that the constructor takes no arguments, and then creating a new method on the object to do what the constructor did previously, the problem was solved.

That explanation may be confusing, but that's because I don't fully understand serialization myself yet. All I can say for sure is that the problem was definitely a serialization issue.

--
Dave M G
Community Moderator

--
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