faqts : Computers : Programming : Languages : PHP : Common Problems : Sessions and State

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

10 of 19 people (53%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

how do you pass a class object as a session variable?

Dec 6th, 2000 18:04
Ben Munoz, Ed White,


Try serializing the object before sticking it into a session variable.  
When you need to access it, unserialize() and use as an object again.