On Mon, 03 Apr 2006 00:03:31 +0300 Giannis Economou <[EMAIL PROTECTED]> wrote: > But now you made me really wonder what special care do objects need... > I was about to do that, it would be convenient for me to store instances > of Class::DBI into my session and re-vivifying them later on to write > them to the db. > Is there any suggested way to go for storing objects in session and have > them back solid as they were before serialization in our session?
I don't have any experience with this, but I have read that Class::DBI objects can be particularly tricky this way. For instance Class::DBI maintains a "live object index" to avoid having multiple instances of the same object in memory at the same time. If you go behind Class::DBI's back and create and destroy its objects, then you will defeat this sytem and Class::DBI will probably behave strangely. You can disable Class::DBI's indexing feature, but I'm not sure this will be your only obstacle. Michael --- Michael Graham <[EMAIL PROTECTED]> --------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/[email protected]/ http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2 To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
