Very weird behavior.
In my controller I have added an attribute [SessionState(SessionStateBehavior.ReadOnly)]
to be able to handle parallel requests.
When added the attribute I see that between requests I lose my session variables. I have seen that the session variables are getting updated, but are lost somewhere along the way.
I have added some debug logs in a couple of life cycle events:
Reqeust1:
Application_PreRequestHandlerExecute: Session.Count:0
Application_PostRequestHandlerExecute: Session.Count:3
Reqeust2
Application_PreRequestHandlerExecute: Session.Count:0
Application_PostRequestHandlerExecute: Session.Count:0
Using .NetFrameWork 4.5.2
, Microsoft.AspNet.Mvc.5.2.3