它们是一样的吗?或者它们有什么不同?
我读过这个post https://stackoverflow.com/questions/7954844/what-is-the-difference-between-these-two-httpcontext-current-session-and-session and this https://stackoverflow.com/questions/940742/difference-between-session-and-httpcontext-current-session但他们正在比较 HttpContext.Current.Session 和 Session 而不是 Context.Session。我错过/误解了什么?
上下文.会话 http://msdn.microsoft.com/en-us/library/system.web.ui.page.session.aspx在与 HttpContext.Current.Session 相同的页面中。HttpContext.Current.Session http://msdn.microsoft.com/en-US/library/system.web.httpcontext.session%28v=vs.100%29.aspx通常在不直接位于页面上或不引用当前页面的代码中使用。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)