Re: Save sessions in database ?
| From: | Bertrand Mansion | Date: | Fri, 02 Aug 2002 12:53:16 +0000 |
| Subject: | Re: Save sessions in database ? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-2025@lists.php.net to get a copy of this message | ||
le 2/08/02 11:10, Rainer Kuhn à kuhn@punkt.de a écrit :
> Hi all!
>
> Nicolas Hoizey wrote:
>> Does anybody think that adapting the PHP4 part of my dbSessions for
>> PEAR would be interesting?
>> http://www.phpheaven.net/projects/dbSessions/
>
> @Nicolas:
> I would appreciate if you would do that. Perhaps you can interact with Sam
> Johnston, who is maintaining the sourceforge pearsession project.
>
> Tomas V.V.Cox wrote:
>>
>> http://sourceforge.net/projects/pearsession/
>
> @Guillaume, Nicolas and others:
> Yesterday I asked Sam Johnston about the state of the pearsession project..
> Today
> he answered me and told me the project was out for a while but now he would
> appreciate some feedback, testing, problem reports and feature requests.
>
> I will do that and perhabs some more people are going to do so... ?! It would
> really be fine to have a PEAR DB-Based session handler in the near future..
> :-)
I've made my own session handler with a db container which will split
session data so that they can fit in a sized field.
Here is the main class :
http://www.mamasam.com/develop/session/Session.phps
And here is the db_split container :
http://www.mamasam.com/develop/session/Container/DB_Split.phps
There are other containers like files.
The code is rather old and need some changes, especially in cookie and error
handling (should use pear). Anyway, feel free to have a look.
Bertrand Mansion
Mamasam