Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Just another Perl shrine
 
PerlMonks  

getting who logged on with using basic auth

by dswimboy (Initiate)
on Aug 15, 2002 at 17:50 UTC ( [id://190538]=perlquestion: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.

dswimboy has asked for the wisdom of the Perl Monks concerning the following question: (cgi programming)

I am using Apache's htaccess to password protect directories. is there a way for my perl script to find out the username of who is logged on?

Originally posted as a Categorized Question.

  • Comment on getting who logged on with using basic auth

Replies are listed 'Best First'.
Re: getting who logged on with using basic auth
by merlyn (Sage) on Aug 15, 2002 at 18:22 UTC
    It's in $ENV{REMOTE_USER}.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://190538]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.