在Session_End中asp.net会话变量 [英] asp.net session variables on Session_End
本文介绍了在Session_End中asp.net会话变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要访问在的global.asax.cs Session_End中的事件Session变量,但HttpContext.Current为null,所以没有会话变量都可以访问。
I need to access Session variables on Session_End event in global.asax.cs, but HttpContext.Current is null, so none of the session variables are accessible.
一)我可以访问用户会话以某种方式不同,或
a) Can I access user session somehow differently, or
b)是否有Session_End中之前任何其他事件突出部分,我可以访问用户的会话变量?
b) Is there any other event jut before Session_End, I could access user's session variables?
推荐答案
我使用Session_End中和会话
,请直接而不需要 HttpContext.Current
。
I use Session_End and Session
is available directly without requiring HttpContext.Current
.
这篇关于在Session_End中asp.net会话变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文