if ((!isset( $PHP_AUTH_USER )) || (!isset($PHP_AU TH_PW))) {
header( 'WWW-Authenticate: Basic realm="Private" ' );
header( 'HTTP/1.0 401 Unauthorized' );
echo 'Authorization Required.';
exit;
} else {
echo "You entered $PHP_AUTH_USER for a username.<BR>";
echo "You entered $PHP_AUTH_PW for a password.<BR>";
}
why does the above keep on asking me for username and password
header( 'WWW-Authenticate: Basic realm="Private" ' );
header( 'HTTP/1.0 401 Unauthorized' );
echo 'Authorization Required.';
exit;
} else {
echo "You entered $PHP_AUTH_USER for a username.<BR>";
echo "You entered $PHP_AUTH_PW for a password.<BR>";
}
why does the above keep on asking me for username and password
Comment