Utherr12 Posted December 12, 2010 Share Posted December 12, 2010 I have a question, if I instantiate a new object that I've made (complete with constructor) and then store it in a session variable, would the object re instantiate upon calling that session variable again on another page ? Link to comment Share on other sites More sharing options...
MrFish Posted December 12, 2010 Share Posted December 12, 2010 The object will actually be deconstructed once the script ends. It will be re-instantiated once it's called again but that doesn't mean it's carried over. Link to comment Share on other sites More sharing options...
justsomeguy Posted December 13, 2010 Share Posted December 13, 2010 As long as the class is defined before you start the session, it will recreate the object. If the class is not defined it will be created as a generic object with all of the same properties, but no methods. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.