How to logout of Auth basic authentication with htaccess?

廉价感情. 提交于 2019-12-13 08:18:37

问题


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

Thanks.


回答1:


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.



来源:https://stackoverflow.com/questions/7668875/how-to-logout-of-auth-basic-authentication-with-htaccess

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!