[thelist] [PHP Newbie] Accessing Object attributes from a _SESSION variable

John Corry lists at neoncowboy.com
Wed Oct 29 13:18:12 CST 2003


I didn't think you could practically store an object in a session variable.

You have to use the serialize() and unserialize() functions.
Http://www.php.net/serialize
Http://www.php.net/unserialize

John
 


-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] On Behalf Of Jacques Capesius
Sent: Wednesday, October 29, 2003 8:06 AM
To: 'Thelist at Lists. Evolt. Org'
...
Obviously, the second line of code above isn't working. My question is, how
to I refer to the attribute values of an object I have stored in a session
variable?

thanks for any help you can offer.

-jacques :)




More information about the thelist mailing list