Page 1 of 1

Re: Storing PHP Object in session

Posted: Wed Jun 27, 2012 5:30 am
by johnj
Thought I am not an expert on this topic, my limited knowledge tells me that storing an object in a session variable is not a good practice for a variety of reasons.

But, you can try this: serialize the object before storing to session variable and unserialize it after you get it from the session. Read about serialize and unserialize from