September 5th, 2001, 03:04 PM
REMOTE_USER Enviroment varilalbe
Hello to all the Brains out there.
Simple question. I hope it only requires a simple answer.
When does the REMOTE_USER variable exist?
Is is allways there when a directory is password protected by .htaccess?
September 6th, 2001, 02:28 AM
>> Is is allways there when a directory is password protected by .htaccess?
Not only that, the user also need to authenticated successfully.
September 6th, 2001, 08:50 AM
Here's the problem
I have a script that runs in a dir protected by .htaccess.
I use the REMOTE_USER varialble to look up more info about the person loged in. I have a mySQL data base that contains info about each user. So, as soon as someone logs in, I know what record in the database to deal with. Hence, the links on the main script page are different according to whoever might be logged in. Such as the link to update their information. When the choose that link, the same cgi script prints a form for them to enter the new info. That works fine. Things are kinda strange when they submit that form. The REMOTE_USER varialbe dissapears. It's just not there. Well, it's there, but it's "".
What's the Deeeeeeal with the REMOTER_USER varialbe?
September 6th, 2001, 09:38 AM
>> Things are kinda strange when they submit that form
Your from script also need to reside in the protected directory.
DON'T CROSS-POST AGAIN!
Last edited by freebsd; September 6th, 2001 at 09:40 AM.
September 6th, 2001, 09:41 AM
September 6th, 2001, 09:44 AM
Sorry, I didn't think as many people would look at the post under security as they might under Perl.
I think I should have posted it to Perl first.