RE: [PEAR] HTTP_SESSION lack of docs

From: Date: Mon, 15 Dec 2003 21:21:27 +0000
Subject: RE: [PEAR] HTTP_SESSION lack of docs
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-9540@lists.php.net to get a copy of this message
Hi Stefan, I've already got a suggestion: it should be possible to hand over an existing DB handle (reference) when calling setContainer(). Because otherwise there are always two connections. One is created by the session handler internally and of course you need a global one for the other DB requests. Or is there any way to get this working with just one connection? Anyway, thanks for putting this package together Stefan! Regards, Torsten >That's great :) >When I've learned better to use this with my scripts and so on then I'll >look if I can make some docs or anything helpful :) Stefan Neufeind wrote: > I'll try to have a look at HTTP_Session in January. But if somebody > could contribute patches / improvements and maybe even some docs I'd > be glad to incorporate those then ... > > > Regards, > Stefan > > On 15 Dec 2003 at 17:22, Helgi wrote: > > >>Hmm I have one question though ... isExpire and isIdle ... doesn't >>this work the same way or ? As far as i can tell i can't see any >>difference between them ... Maybe that's because I haven't worked that >>much with session ... :) >> >>Torsten Roehr wrote: >> >> >>>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 >>>> >>>> >>>> >>>> >> >>-- >>PEAR General Mailing List (http://pear.php.net/) >>To unsubscribe, visit: http://www.php.net/unsub.php > > -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.pear.general (#9540) next »