keyoke
keyoke

Reputation: 1209

HttpContext.current.Session returns Nothing

I access some session variables from within a class library, the properties/methods are being called from a ASP.NET page. But the Session returns nothing why would this be?

Upvotes: 0

Views: 741

Answers (1)

sharp_net
sharp_net

Reputation: 737

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

Upvotes: 2

Related Questions