CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Passing Username from htaccess into script

 



martoQ
Deleted

Dec 18, 2000, 8:59 AM

Post #1 of 2 (200 views)
Passing Username from htaccess into script Can't Post

Here is what I am trying to do. Currently I have users logging in on a homemade front end. I don't like it. I would much prefer to pass the username into my scripts via a pop up dialoug box that is generated from .htaccess. So basically what I want to do is have a pop up dialog box from htaccess come up when the user attempts to access the page. I want them to enter the username and password, and then have it pass that info into my perl script. And that is where I am currently stuck. How do you pass the username and password into the script. I checked $ENV{'REMOTE_USER'} but its not in there. Is there a chance that is from a server config issue, or am I just in the wrong direction? Any help would be greatly appreciated.




princepawn
Novice

Dec 18, 2000, 11:10 AM

Post #2 of 2 (198 views)
Re: Passing Username from htaccess into script [In reply to] Can't Post

http://hoohoo.ncsa.uiuc.edu/cgi/env.html

does in fact corroborate what you say about that environmental variable:

REMOTE_USER
If the server supports user authentication, and the script is
protected, this is the username they have authenticated as.


 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives