Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Perl-CGI - Emulating Apache authentication?

by DreamT (Pilgrim)
on Mar 08, 2013 at 10:22 UTC ( [id://1022383]=note: print w/replies, xml ) Need Help??


in reply to Re: Perl-CGI - Emulating Apache authentication?
in thread Perl-CGI - Emulating Apache authentication?

I want to control the behaviour (enabling/disabling) of the authentication based on dynamic variables in the Perl code, that's why I really can't use it as it is.
I guess I can use mod_perl in some way, but the environment for this specific task is very strict - I really can't install mod_perl in the target environment.

Replies are listed 'Best First'.
Re^3: Perl-CGI - Emulating Apache authentication?
by rnewsham (Curate) on Mar 08, 2013 at 10:45 UTC

    I think you really just need to create a cookie based login session system. If you have reasons for not wanting to store users in a database then you can still use a .htpasswd file for storing users. I think App::Authentication::Htpasswd should allow you to do that.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1022383]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2024-03-19 02:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found