From: <php...@li...> - 2010-09-21 17:14:49
|
Hi Ian, > I don't normally call this manually but let the main site __destruct() > function call handle the saving of all my objects into a session > variable the __destruct() hook lets you destroy external resources associated with the current class instance. What you are looking for is the __sleep() hook, which lets you save the object state. Please see the PHP documentation for details. Please see also: http://bugs.php.net/bug.php?id=49432 Regards, Jost Bökemeier |