note 9090 added to HTTP authentication with PHP
| From: | marcel at humanique dot com | Date: | Mon, 16 Oct 2000 07:01:56 +0000 |
| Subject: | note 9090 added to HTTP authentication with PHP | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-6516@lists.php.net to get a copy of this message | ||
The new Mozilla browser doesn't seem to like the switched authentication lines.
This doesn't work (I have build 2000101308):
Header( "WWW-authenticate: Basic realm=\"test\"");
Header( "HTTP/1.0 401 Unauthorized");
The first time you authenticate all seems ok, but the second time it always returns unauthorized.
This works as it should:
Header( "HTTP/1.0 401 Unauthorized");
Header( "WWW-authenticate: Basic realm=\"test\"");
http://www.php.net/manual/features.http-auth.php