Besides getting it from %ENV, you can also access the username via the CGI module. In either case it's only defined if the user is logged in. You cannot retreive the password unless you write your own password management system. Passwords are not available in the cgi environment, and are by default stored on the web server via one way encryption.
$username = $ENV{REMOTE_USER}; $username = $q->remote_user; $username = remote_user();
In reply to Re: Apache Username
by hangon
in thread Apache Username
by ela
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |