Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: Website login/authentication

by The Mad Hatter (Priest)
on Sep 19, 2004 at 20:30 UTC ( #392229=note: print w/replies, xml ) Need Help??

in reply to Website login/authentication

You're probably best having a script accept the username and password and then redirecting to the proper URL with the correct Basic authentication headers (filled out with the info passed via CGI). Otherwise, you'll have to set and check cookies.

If you want to stick with using Apache's htpasswd approach of managing users but don't mind setting/checking cookies throughout the site, then check out Apache::Htpasswd. It'll allow you to check a username/password pair from within a Perl script (such as one called from a form on a webpage).

There are plenty of other ways to authenticate users as well.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://392229]
Corion joins another telephone call :-/
[Discipulus]: also The Life and Opinions of the Tomcat Murr
[Discipulus]: I dunno if i can read Dumas in french.. must try some chapter to see
erix . o O( "what fools the french are, Jeeves" )
[choroba]: Also some Достое́вс кий
[Discipulus]: mmh windows understand something like: cd c:\\\\path\\\\to weird..

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (12)
As of 2017-05-24 08:08 GMT
Find Nodes?
    Voting Booth?