Detect Browser Close on Asp.net

前端 未结 3 685
余生分开走
余生分开走 2020-12-03 03:57

I want to do some functionality on log-out, if the user directly closed his browser then same functionality want to do, we can not do on page unload because there are more

3条回答
  •  醉梦人生
    2020-12-03 04:50

    
    

    Call the logout.aspx when window closes using javascript + jquery. Do whatever you want to do in the logout.aspx page load event.

    The above snippet will have to be added in your master page's html.

提交回复
热议问题