Page 1 of 1

Question about HTTP Authentication

Posted: Wed Aug 26, 2009 10:48 am
by smokinguns
Hey all,
I have a PHP(4.3.8, SERVER API:CGI/FastCGI ) shopping cart app running on IIS 5.0. I have restricted the admin section of this app. Whenever somebody tries to access the admin section, a dialog popup that require Username and Password comes up. Is there a way I can access the username entered in this dialog? I have checked 'anonymous access' and 'integrated windows authentication' for this website in IIS manager. Also PHP_AUTH_USER seems to not being defined in phpinfo() output. Any Ideas?

Re: Question about HTTP Authentication

Posted: Wed Aug 26, 2009 3:52 pm
by Darhazer
print_r($_SERVER)
Maybe there is HTTP_AUTHORIZATION instead?
Also, from the manual:
IIS Note:
For HTTP Authentication to work with IIS, the PHP directive cgi.rfc2616_headers must be set to 0 (the default value).