#1
  1. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2001
    Posts
    17
    Rep Power
    0

    Question 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?

  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Posts
    4
    Rep Power
    0
    >> Is is allways there when a directory is password protected by .htaccess?

    Not only that, the user also need to authenticated successfully.
  4. #3
  5. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2001
    Posts
    17
    Rep Power
    0

    Angry 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?

    Help.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Posts
    4
    Rep Power
    0
    >> 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.
  8. #5
  9. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2001
    Posts
    17
    Rep Power
    0
    it does.
  10. #6
  11. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2001
    Posts
    17
    Rep Power
    0
    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.

    My apologies.

IMN logo majestic logo threadwatch logo seochat tools logo