The-Last-Escape Posted May 3, 2007 Share Posted May 3, 2007 Is it possible, or worthwhile, to place objects in sessions or does it make more sense to just pass an array around and make an object when you need to? I tried to pass an object as a session variable, but that ended up needing the __autoload () function and even then it seemed to have lost all its data... Anyone have any suggestions? Quote Link to comment Share on other sites More sharing options...
trq Posted May 3, 2007 Share Posted May 3, 2007 Yes its possible to pass objects around in sessions. Is it worthwhile? Depends what the object does. If its perisistency your after, I usually find it better to serialize and store the object in a database, then retrieve it again when I need it. Quote Link to comment Share on other sites More sharing options...
The-Last-Escape Posted May 3, 2007 Author Share Posted May 3, 2007 Thanks for the info Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.