The 5th Annual China PHP Conference

Voting

Please answer this simple SPAM challenge: five minus five?
(Example: nine)

The Note You're Voting On

sergio dot carvalho at gmail dot com
1 year ago
The only effective way I've found to wipe out the PHP_AUTH_DIGEST or PHP_AUTH_USER AND PHP_AUTH_PW credentials is to call the header HTTP/1.1 401 Unauthorized.

function clear_admin_access(){
    header('HTTP/1.1 401 Unauthorized');
    die('Admin access turned off');
}

<< Back to user notes page

To Top