How to log out user from web site using BASIC authentication?

后端 未结 22 1434
感情败类
感情败类 2020-11-22 04:00

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 co

22条回答
  •  情深已故
    2020-11-22 04:40

    I've just tested the following in Chrome (79), Firefox (71) and Edge (44) and it works fine. It applies the script solution as others noted above.

    Just add a "Logout" link and when clicked return the following html

        
    You have been logged out. Redirecting to home...

提交回复
热议问题