Re: PHP_AUTH_USER
| From: | Stas Maximov | Date: | Fri, 30 Aug 2002 12:02:11 +0000 |
| Subject: | Re: PHP_AUTH_USER | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-114641@lists.php.net to get a copy of this message | ||
> You can't log out of http authentication. Close the browser is it. Not
very secure, eh. Use a session based login method > if you need logout
function.
Why not? Sending this to the client should do the job:
header('WWW-Authenticate: Basic realm="My Realm"');
header('HTTP/1.0 401 Unauthorized');
HTH, Stas