如何使用htaccess的注销验证基本认证的? [英] How to logout of Auth basic authentication with htaccess?

查看:165
本文介绍了如何使用htaccess的注销验证基本认证的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过这样的.htaccess HTTP基本身份验证,我需要注销;这可能吗?

I'm doing HTTP basic authentication via .htaccess, and I need to logout; is this possible?

感谢。

推荐答案

每维基百科基本访问认证页面(在劣势部分):

Per the Wikipedia Basic access authentication page (in the Disadvantages section):

目前尚无有效的方式为一台服务器为注销用户不   关闭浏览器

there is no effective way for a server to "log out" the user without closing the browser.

这是因为服务器不会记录谁登录的,而是由浏览器发送的每一个请求到服务器身份验证凭据。

This is because the server doesn't keep track of who is logged in. Instead, the browser sends authentication credentials on every request to the server.

这篇关于如何使用htaccess的注销验证基本认证的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆