usrbinperl has asked for the wisdom of the Perl Monks concerning the following question:
I am having trouble with .htaccess. I have a directory inside my cgi-bin that is authenticated via .htaccess. Whenever I go to any script, it pops up an authentication window (as it should). Everything works fine when going from script to script inside the directory, or at least it appears that way.
The problem lies in submitting a form(POST) to one of those scripts. Whenever I arrive at a script via a form, parts of the %ENV hash are not set (i.e REMOTE_USER, AUTH_TYPE) so it appears that the server doesn't recognize that the script needs authentication. Aside from the security issue, I need the REMOTE_USER value for sql entries.
Any idea why certain authentication elements are not set in the %ENV hash when submitting a form versus just a link or simply typing in the url?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: .htaccess question
by Kanji (Parson) on May 08, 2002 at 01:31 UTC |