On my .NET web application I need to track down when a session expires while the browser is closed.
在我的.NET Web应用程序中,我需要在浏览器关闭时跟踪会话何时到期。
Is there any way to do this? I've already handled the case in which a session timeouts while a user is logged-in, but I can't think of a way to detect this particular issue.
有没有办法做到这一点?我已经处理了用户登录时会话超时的情况,但我想不出有办法检测这个特定问题。
Thank you.
1 个解决方案
#1
0
In the Global.asax, add code to the Session_OnEnd method. This event fires whether or not the browser is open.
在Global.asax中,将代码添加到Session_OnEnd方法中。无论浏览器是否打开,此事件都会触发。
#1
0
In the Global.asax, add code to the Session_OnEnd method. This event fires whether or not the browser is open.
在Global.asax中,将代码添加到Session_OnEnd方法中。无论浏览器是否打开,此事件都会触发。