如何使用 BASIC 身份驗證從網站註銷用戶? - How to log out user from web site using BASIC authentication?

問題:

Is it possible to log out user from a web site if he is using basic authentication?如果用戶使用基本身份驗證,是否可以從網站註銷用戶?

Killing session is not enough, since, once user is authenticated, each request contains login info, so user is automatically logged in next time he/she access the site using the same credentials.終止會話是不夠的,因爲一旦用戶通過身份驗證,每個請求都包含登錄信息,因此用戶下次使用相同的憑據訪問站點時會自動登錄。

The only solution so far is to close browser, but that's not acceptable from the usability standpoint.到目前爲止唯一的解決方案是關閉瀏覽器,但從可用性的角度來看這是不可接受的。


解決方案:

參考一: https://en.stackoom.com/question/ykF
參考二: https://stackoom.com/question/ykF
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章