Re: SessionManager

From: Date: Thu, 28 Jun 2001 14:54:04 +0000
Subject: Re: SessionManager
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-513@lists.php.net to get a copy of this message
Quoting Hans Westerbeek <hw@xs4all.nl>: > $sesMgr = new SessionManager(); session_start(); > $myFoo = new Foo("blah"); // construct a Foo object > $mySesMgr->addVar("myFoo ", $myFoo); // register the object > // ... perform actions with the myFoo object that changes its inner state session_register('myFoo'); > Then you can get that object back from the session at any time, and can > keep track of all of the registered variables more easily, since they're > all in one place. Internally SessionManager will have an array that it > registers with session_register(). In this array it stores all of the > variables. So, a mirror of $HTTP_SESSION_VARS? I'm still not seeing the added value. -chuck -- Charles Hagenbuch, <chuck@horde.org> Some fallen angels have their good reasons.

« previous php.pear.dev (#513) next »