[horde] Mechanism for storing objects in the horde session

Jan Schneider jan at horde.org
Thu Aug 1 03:30:57 PDT 2002


Zitat von Igor Stroh <stroh at scan-plus.de>:

> I'd like to store instances of my custom classes in a session. I tried
> to simply register the objects in the session but php raises an error
> upon reload of the page that contains the object (the ussuall
> "incomplete object" error). I  know that Horde uses lib/Cache.php for

If you want to store objects in a session, the class that the objects are
instantiated from must be available before the session is started.
That means that you have to include the file that contain the class
definition before the session starts, what normally happens in lib/base.php.

Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft


More information about the horde mailing list