Mid-Atlantic Developer Conference - Call for Speakers


Please answer this simple SPAM challenge: eight plus zero?
(Example: nine)

The Note You're Voting On

sergio dot carvalho at gmail dot com
2 years 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