php3-list | 199903
Date: 03/26/99
- Next message: Howie Oakes: "RE: [PHP3] how to read text string with carriage returns into one $var"
- Previous message: Howie Oakes: "[PHP3] "Bad handshake" MySQL error..."
- In reply to: Jeff Fox: "[PHP3] How do I log out?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> I'm able to log in and test my password against the NT ACL.
> The problem I'm having is if I type in the wrong password. I can handle
> that in my code, but I cannot get the authorization script to 'forget' my
> previous attempt so I can log in again.
<?php
if ($PHP_AUTH_USER==$my_user) {
Header("WWW-authenticate: basic realm=\"mess\"");
Header("HTTP/1.0 401 Unauthorized");
exit;
} else {
echo "AUTH_USER : ---".$PHP_AUTH_USER."---<br>\n";
echo "AUTH_PW : ---".$PHP_AUTH_PW."---<br><br>\n";
echo "<a
href=\"$PHP_SELF?my_user=".rawurlencode($PHP_AUTH_USER)."\">Try
Again</a><br>\n";
}
?>
-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3 List administrator: zeev-list-admin <email protected>
- Next message: Howie Oakes: "RE: [PHP3] how to read text string with carriage returns into one $var"
- Previous message: Howie Oakes: "[PHP3] "Bad handshake" MySQL error..."
- In reply to: Jeff Fox: "[PHP3] How do I log out?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

