Posted by Ken Robinson on 09/09/05 15:30
Harris Kosmidis wrote:
> Hello, I use php4.4.1 and when a user log in I use a class which stores
> some info for the user. I serialize the class in a session variable.
> I later on read the session var and unserializd to check for certain
> user info.
Since all information that is stored in session variables is
automatically serialized, you don't have to serialize it yourself.
Try just storing the class without doing the serialize and retrieve it
without doing the unserialize and see what happens.
Ken
[Back to original message]
|