Re: usage of PEAR::AUTH ?

From: Date: Thu, 03 Oct 2002 21:12:43 +0000
Subject: Re: usage of PEAR::AUTH ?
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-2428@lists.php.net to get a copy of this message
I actually found an example with the database tables and a simple use of Auth at: http://www.circle.ch/projects/2/8 (Thanks to Urs) But it is too simple and does not explain all the other functions available with Auth. Auth basic functions are well documented, but when it comes to session expire etc. ... one has to guess and trial on error ... Even though I would like to use Auth, due to non-functioning of the expire functionality (maybe due to my lack of understanding ...), I might have to either modify Auth or write my own code. But I presume that there are many other people around there with positive Auth experience. Gunther "Guy Weatherburn" <guy@e-guy.co.uk> wrote in message news:ADECKDJNAJJGKEGGJPKFIEHJCIAA.guy@e-guy.co.uk... > All, > > Must admit that despite having several years of PHP experience and over 25 > years of programming/scripting experience that I find the Auth module of > Pear to be an absolute pain!!!! For starters the ambiguity of the database > name and tables defaults are a no no!!! > the rest of it seems to be rocket science despite the fact that if you look > at the code it can not be. Can someone who really knows what is trying to be > done please write some tutorials along the lines of those available for the > DB stuff... This will clear up several problems for me and also for others > that are struggling.!!!??? > > Guy > The e-Guy Ltd (co.uk) > www.e-guy.co.uk > > PS Having decided (i.e. been forced by a potential client) would like to use > PEAR > > > -----Original Message----- > From: Gunther [mailto:g@guntherrichter.com] > Sent: 03 October 2002 03:21 > To: pear-general@lists.php.net > Subject: usage of PEAR::AUTH ? > > > After some kind of struggle through the documentation, missing functions, > taking the latest cvs, > therefore changing PEAR DB.php (PEAR::isConnection was missing in my local > 4.2.1 PHP installation), > I am now at the point where I actually like to use Auth. > With some basic documentation I got a basic login functionality (with Smarty > templates). Now I would like > to use session timeout etc. with the existing Auth functions setIdle() etc. > But somehow it simply ignores > whatever I do. Only when I set $idle manually within Auth.php it is working > fine. > > Is there some kind of documentation (please no hints to the docs ...) about > how to actually use the different > functions in CONTEXT. e.g. using checkAuth(), instead of getAuth(), where to > use getStatus()? > getStatus() for instance is in the documentation, but not in the 'latetest > download', therefore I used the cvs files. > > Would be nice to see a 'real' application using Auth! > > And is there a way to store the session in a DB? And if ... what is the > advantage? > There is the DB_Session class ... would that be an enhancement ? > > Any hints are very much appreciated!! > > Gunther > > >

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