perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Davis <sdav...@mail.nih.gov>
Subject Re: Authentication
Date Thu, 03 Aug 2006 13:14:07 GMT



On 8/3/06 7:51 AM, "Vladimir S. Tikhonjuk" <vst@vst.donetsk.ua> wrote:

> Hi all!
> 
>     I'm thinking about 2 methods of authentication users for my site.
> May be you'll help me to choose one of them, or advice me something else.
> 
>     The first method: using PerlAuthenHandler on '/' Location.
> 
>     The second method: simple handler, for example
> http://localhost/login, which checks login and password, If everything
> is O.K. make session, send cookie with session id. And another handler
> which checks every reqest for Cookie with session id and desided whether
> to give access or not.
> 
>     Disadvantage (as I think) of first method: before every request make
> SQL query to the database for varification login and password.

You can do both.  See things like:

http://search.cpan.org/~mschout/Apache-AuthCookie-3.10/lib/Apache/AuthCookie
.pm

Sean


Mime
View raw message