CLASS/Object lifetime

From: Date: Mon, 20 Feb 2006 07:20:43 +0000
Subject: CLASS/Object lifetime
Groups: php.general 
Request: Send a blank email to php-general+get-230811@lists.php.net to get a copy of this message
Hi! I'v got 2 classes. CLASS1 makes a array of instanses of class2. I need thees classes 2 live for the duration of the session so I serialize class1 to a _session var. I submit the form and the page is reloaded. I unserialize class1 back 2 same instanse var. class1 I works. The instanses of class2 almost work. I can read all data from the class/object, I can run functions off class2 BUT I can't change the data in objects og class2. Is this at all possible. ps.I do not serialize/unserialize object of CLASS2, these are instanses of CLASS1. regard Roger Helgesen

« previous php.general (#230811) next »