RE: usage of PEAR::AUTH ?
| From: | Guy Weatherburn | Date: | Thu, 03 Oct 2002 19:39:41 +0000 |
| Subject: | RE: usage of PEAR::AUTH ? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-2427@lists.php.net to get a copy of this message | ||
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