问题
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