PASS"; else echo "FAIL"; exit; } else { header('WWW-Authenticate: Basic realm="My Realm"'); header('HTTP/1.0 401 Unauthorized'); echo "Auth dialog behavior when press Cancel button: "; if ($_SESSION['triedTimes'] == 1) echo "PASS"; else echo "FAIL"; exit; } ?>