[horde] Mechanism for storing objects in the horde session

Chuck Hagenbuch chuck at horde.org
Thu Aug 1 05:51:54 PDT 2002


Quoting Jan Schneider <jan at horde.org>:

> 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.

The other option is to serialize the object before putting it into the 
session, and just make sure that the class is available when you want to 
unserialize it.

-chuck

--
Charles Hagenbuch, <chuck at horde.org>
"After a few minutes the most aromatic and nice smelling Italian coffee 
 will come out of the exhaustpipe." - Our stove-top espresso pot


More information about the horde mailing list