Re: PHP Authenticate
| From: | Dan Lowe | Date: | Tue, 06 Feb 2001 06:22:21 +0000 |
| Subject: | Re: PHP Authenticate | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-38357@lists.php.net to get a copy of this message | ||
Previously, FredrikAT said:
> Hi... I have a problem with PHP Authenticate....
> ...if I enter user/pw wrong the first time it stops and I have to close/open
> browser.!
> I've tried to unset $PHP_AUTH_USER but then it just loops...
> if(!isset($PHP_AUTH_USER)) {
> Header("WWW-Authenticate: Basic realm=\".: Privat område :.\"");
> Header("HTTP/1.0 401 Unauthorized");
If the password entered is incorrect just issue these two headers again
and it will force the browser to reauthenticate.
-dan
--
Dan Lowe <dan@tangledhelix.com> http://tangledhelix.com/
I didn't have time to write a short letter, so I wrote a long one instead.
-Mark Twain