Re: SessionManager
| From: | Chuck Hagenbuch | Date: | Thu, 28 Jun 2001 02:11:33 +0000 |
| Subject: | Re: SessionManager | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-508@lists.php.net to get a copy of this message | ||
Quoting Hans Westerbeek <hw@xs4all.nl>:
> It's the same value as for the XML_Parser class for example... There's
> nothing in there that you can't do by using the primitive functions
> yourself.... But: the value (to me) is the fact that it can be used in
> other (future) PEAR-components. Aren't sessions a vital PHP-functionality?
> Vital functionalities should be used in the same fashion as much as
> possible, i.e. with a wrapper class.
>
> In the end that wrapper class will be bug-free, saving the developer of a
> new Pear component that requires sessions a lot of work...
This argument only holds if there are a lot of composite operations that you
routinely perform with the session functions which make sense wrapped into one
meta-action - ie, a method. XML is a lot more complicated than the session api.
-chuck
--
Charles Hagenbuch, <chuck@horde.org>
Some fallen angels have their good reasons.