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

[eluser]kmanlove[/eluser]
[quote author="Colin Williams" date="1264415104"]Should make no difference. Have you inspected the data structure at all, with print_r or var_dump? Sounds like you are simply accessing it incorrectly[/quote]

I wish it were that simple.

I stick the form object, which I've verified is actually an object, in userdata with
Code:
$this->session->set_userdata('form', $this->item);

Obviously, I get it out with
Code:
$sticky_form = $this->session->userdata('form');

It returns "Object" with var_dump and print_r, and it's even stored like that in the database. If I change it to an array, it works. Really confused.


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