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

[eluser]kmanlove[/eluser]
For sticky forms that repopulate after an error, I've been storing arrays in the session userdata. Works fine. I want to convert that over to objects, but when I try to store objects in the session userdata, I only get "Object" returned to me. I've looked over the serialize code, and it seems like it should work. Instead of $array['keys'], I want $object->keys. No biggie, right?

I guess I'm asking before I put up any code, shouldn't this work fine? There shouldn't be anything preventing me from putting an object instead of an array (size, etc), should there? Any help is greatly appreciated.

Thanks,
Keith


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