Logoff User when browser tab page is closed, ASP.NET MVC

后端 未结 5 420
攒了一身酷
攒了一身酷 2021-02-06 02:29

In one of the ASP.NET MVC apps we would like to logoff the user automatically if he closes the browser tab in which the app is opened.

We are using the following code wh

5条回答
  •  日久生厌
    2021-02-06 02:59

    We decided to use cookie less authentication so that the authentication token is part of the url. When the tab is closed and they open the website again, they will be asked to authenticate again :)

提交回复
热议问题