I'm loading a page with WebPart in it, and I get NullReferenceException in this line:
HttpContext.Current.Session["Foo"] = value;
because Session is null. The web.config under inetpub folder has
<pages enableSessionState="false" ... >
Does session bag being null is caused by this setting in web.config, or is the cause completely different?