Hi! i have a secured folder on my web site which only the staff can view, under that folder there is a page which has some links. I am trying to secure one of the links so that only i can view that page. this is how i am doing it:
if ($PHP_AUTH_USER != "somename" || $PHP_AUTH_PW != "somepassword")
{
header('WWW-Authenticate: Basic realm="Customer Email Broadcast"');
header("HTTP/1.0 401 Unauthorized");
echo "<H2>Authorization needed to view this resource.</h2>";
die;
}
but i cant get it to work cos i think the browser is mixing this password with the secured folder password. is there a better way to achieve this or am i doing some thing wrong