how to kill the session when user closed the browser without logout

后端 未结 3 1774
心在旅途
心在旅途 2021-01-14 11:39

I am developing one aspnet application in that i am using Sessions. if user login into the application and click on logout here i am closing session.

suppose if the

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-14 12:08

    There is no way your application can know that the user has closed the browser. Session will be closed based on Session.Timeout

    If the user does not refresh or request a page within the time-out period, the session ends.

提交回复
热议问题