开发者

HttpContext.current.Session returns Nothing

开发者 https://www.devze.com 2023-03-31 03:26 出处:网络
I access some session variables from within a class li开发者_如何转开发brary, the properties/methods are being called from a ASP.NET page. But the Session returns nothing why would this be?Does your c

I access some session variables from within a class li开发者_如何转开发brary, the properties/methods are being called from a ASP.NET page. But the Session returns nothing why would this be?


Does your code run before HttpApplication.AcquireRequestState event? Is SessionState http module enabled? If thats disabled, your session would return null.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号