title: Session data not persisting between requests?
body: <p>During my authorization processes, I need to set some data into the session so that it can travel with every request made by the web page. As soon as the authorization is approved in my AuthorizationAttribute.AuthorizeCore(), I make some calls to our services to retrieve the necessary data that needs to travel with every request and stuff it into the session via <code>httpContext.Session["MyInfoObject"] = myInfoObject</code> and then return true. </p>
  
  <p>The session cookie is set and the next request shows that the user is now authenticated. However, when I attempt to retrieve the data that was previously stored via <code>var myInfoObject = requestContext.HttpContext.Session["MyInfoObject"] as MyInfoObject;</code> the entire session value collection is empty. I observed the Session object and I could see that the Session object is populated, and the SessionID is the same as the one in the session cookie in the browser, but the value collection is empty. Nothing was saved.</p>
  
  <p>Any ideas?</p>
  
  <p><strong>Update</strong>
  I was checking the session values in the controller base class. I created a custom base class for my controllers and in the Initialize() override, I call base.Initialize() first and then start fiddling with the Session. At this stage, the session values are empty. However, if I place a break point inside of an Action on the Derived controller, my values are there. I think I'm missing something in the way the pipeline executes. Any info would help.</p>