Guest_imported
New member
- Jan 1, 1970
- 0
This is my code:
if(!isset($PHP_AUTH_USER)) {
Header(" Basic realm=\"foro\""
;
Header("http/1.0 401 Unauthorized"
;
echo "User hits CANCEL";
exit;
}
else{
echo "<P>";
echo $PHP_AUTH_USER;
echo "</P><P>";
echo $PHP_AUTH_PW;
echo "<P>";
}
When the page is loaded, a login/password dialog box appear, but I type some text in both fields and it is always showed "User hits CANCEL".
I don't understand the meaning of "Basic realm"
It may be that "\foro\" is a bad parameter ???
if(!isset($PHP_AUTH_USER)) {
Header(" Basic realm=\"foro\""
Header("http/1.0 401 Unauthorized"
echo "User hits CANCEL";
exit;
}
else{
echo "<P>";
echo $PHP_AUTH_USER;
echo "</P><P>";
echo $PHP_AUTH_PW;
echo "<P>";
}
When the page is loaded, a login/password dialog box appear, but I type some text in both fields and it is always showed "User hits CANCEL".
I don't understand the meaning of "Basic realm"
It may be that "\foro\" is a bad parameter ???