WWW-Authenticate problem
Posted: Mon Jun 13, 2005 1:18 pm
Hi all
I am migrating a site from a windows box to a linux. Everything seems to be working except the admin login which use the header function with WWW-Authenticate. When you go the log in page the pop up window comes up but it seems that it does not pass the user and password variables back to the page
I have safe mose turned off I am not sure why it is only partialy working.
thanx
dave
I am migrating a site from a windows box to a linux. Everything seems to be working except the admin login which use the header function with WWW-Authenticate. When you go the log in page the pop up window comes up but it seems that it does not pass the user and password variables back to the page
Code: Select all
if (!isset($PHP_AUTH_USER)) {
header('WWW-Authenticate: Basic realm="Admin Area"');
header('HTTP/1.0 401 Unauthorized');
echo 'Authorization Required.';
exit;
}thanx
dave