Welcome Guest, Not a member yet? Register   Sign In
Storing standard object in session
#5

[eluser]kmanlove[/eluser]
[quote author="Colin Williams" date="1264417217"]Have you tried to serialize() the object outside of the session class?[/quote]
Yes, and that works fine. Just returns the object as it should.

If I serialize and unserialize outside of the session class, like
Code:
$this->session->set_userdata('form', serialize($this->item));
$sticky_form = unserialize($this->session->userdata('form'));

it all works fine. I didn't think I needed to do this. I thought that the session class handled this. Am I mistaken?


Messages In This Thread
Storing standard object in session - by El Forum - 01-24-2010, 10:14 PM
Storing standard object in session - by El Forum - 01-24-2010, 10:25 PM
Storing standard object in session - by El Forum - 01-24-2010, 10:46 PM
Storing standard object in session - by El Forum - 01-24-2010, 11:00 PM
Storing standard object in session - by El Forum - 01-24-2010, 11:19 PM
Storing standard object in session - by El Forum - 01-24-2010, 11:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB