RE: [PEAR] HTTP_SESSION lack of docs
| From: | Torsten Roehr | Date: | Mon, 15 Dec 2003 17:08:04 +0000 |
| Subject: | RE: [PEAR] HTTP_SESSION lack of docs | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-9531@lists.php.net to get a copy of this message | ||
Storing the session data in the DB works already. The only problem (as
mentioned) is that you need two DB connections. One is created by
setContainer/HTTP_Session and you need a global one for your other stuff.
Does anyone else know a way to use one connection for both things?
-----Original Message-----
From: Helgi Þormar [mailto:helgi@trance.is]
Sent: Monday, December 15, 2003 6:03 PM
To: Torsten Roehr
Subject: Re: [PEAR] HTTP_SESSION lack of docs
Hi Torsten
And thanks for the answear :)
I would also want to see that in future version because I was thinking
about using this to logg sessions in DB ... as in sessions that are
alive an monitor which have been idling to long and log those people out
of the system and that kinda stuff :)
At the giving time I don't have any more questions :) Just have to test
this some more and try to add this in my forum system ;)
Thanks again :)
Torsten Roehr wrote:
>Hi Helgi,
>
>I'm using this package and are quite satisfied with it. I don't know of a
>way to use a global DB connection with setContainer() as this method
creates
>a connection itself (as you will have noticed). I hope there will be a way
>in the future. Of course one could change some lines of code in the method
>so that it returns the created DB handle - haven't tried this yet.
>
>Have you any other questions concerning this package?
>
>Regards, Torsten
>
>-----Original Message-----
>From: Helgi [mailto:helgi@trance.is]
>Sent: Monday, December 15, 2003 5:34 PM
>To: pear-general@lists.php.net
>Subject: [PEAR] HTTP_SESSION lack of docs
>
>
>Hi,
>I'm now experimenting with the HTTP_Session class and well it lacks
>documentation and the docs that are present aren't in my opinion that
>good and use also bad PHP like echo("foobar"); and such.
>
>Another thing ... how can I use existing DB connection with the
>setContainer() ? :/
>Haven't still manged to find that.
>
>Thx to those who answear ;)
>
>--
>PEAR General Mailing List (http://pear.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>