PHP 8.5.0 Alpha 4 available for testing

Voting

: max(zero, five)?
(Example: nine)

The Note You're Voting On

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