protected void Application_BeginRequest(Object sender, EventArgs e) { HttpContext.Current.Items.Add( "nh.sessionscope", new SessionScope() ); }