Re: User data management a la PHPlib
| From: | Bertrand Mansion | Date: | Tue, 27 May 2003 15:24:03 +0000 |
| Subject: | Re: User data management a la PHPlib | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-5625@lists.php.net to get a copy of this message | ||
<mk362@mch.osram.de> wrote :
> Hi,
>
> I already tried to ask this once without response, but maybe somebody
> shows up being able to comment on that topic:
>
> Is there a (session and) user data management package
> available in PEAR which works like PHPlib?
>
> I understood that there is the much more powerful LiveUser for
> authentication purposes, but what about storing session/user data in a
> database like it is done in PHPlib?!?
>
> For my sessions I wouldn't need a database container, but for my user data
> I prefer to store information in mysql preferably. This is quite nicely
> possible with PHPlib and its user4 class which allows to save data in
> files as well as in databases.
>
> Since I think it's wise to switch to PEAR completely I certainly miss such
> a feature in PEAR. But perhaps I still haven't understood that it already
> exists somewhere and just haven't found it because of blindness or
> inability to read the PEAR website...
You are still thinking the old PHPLib way. Things have evolved a lot since
then. For instance, you don't need to use a class to handle your sessions
anymore since PHP4. If you need a wrapper around your session calls, there
is the HTTP_Session package. If you want to store your users preferences,
there is a Auth_PrefManager package. Even better, you can create a
dataobject for your users with the DB_DataObject package.
For permission management, there is LiveUser but it's unfortunately far from
being finished, there are still issues that need to be fixed. In the
meanwhile maybe the Auth package could do it. Help yourself,
Bertrand Mansion
Mamasam