note 117415 added to features.http-auth
| From: | sergio dot carvalho at gmail dot com | Date: | Sun, 07 Jun 2015 16:01:05 +0000 |
| Subject: | note 117415 added to features.http-auth | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-202761@lists.php.net to get a copy of this message | ||
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');
}
----
Server IP: 72.52.91.14
Probable Submitter: 5.43.10.196
----
Manual Page -- http://php.net/manual/en/features.http-auth.php
Edit -- https://master.php.net/note/edit/117415
Del: integrated -- https://master.php.net/note/delete/117415/integrated
Del: useless -- https://master.php.net/note/delete/117415/useless
Del: bad code -- https://master.php.net/note/delete/117415/bad+code
Del: spam -- https://master.php.net/note/delete/117415/spam
Del: non-english -- https://master.php.net/note/delete/117415/non-english
Del: in docs -- https://master.php.net/note/delete/117415/in+docs
Del: other reasons-- https://master.php.net/note/delete/117415
Reject -- https://master.php.net/note/reject/117415
Search -- https://master.php.net/manage/user-notes.php