Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get current login user

Status
Not open for further replies.

OpenWater

Programmer
Joined
Nov 10, 2002
Messages
9
Location
DE
Hi Folks,

can anybody help please ...

I am using a Apache webserver with some directories using a .htaccess file for user authentification. Now I am looking for a way, on how to obtain the current authentification username. Lets say my directory requires the users 'Miller' or 'Smith' according to the .htaccess file. When accessing the webpage within the directory the user get a login prompt. After entering a valid username and password a perl script will run on the server. Now I want to know, whether 'Miller' or 'Smith' have logged into the system, within my perl script. How can I do that. Any help, even a good link would be appreciated.

Best regards
OpenWater
 
look into environment variables...$ENV{'REMOTE_USER'} specifically

hth
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top