Reputation: 1878
The session is always Null inside of my controller in MVC 5. Accessing it via Controller or HttpContext it is still null. I have read also read the post like the one below where you can add the sessionState module to the web config but that does not work for me. Any ideas?
System.Web.HttpContext.Current.Session
Controller.Session
Upvotes: 0
Views: 2860
Reputation: 1878
In the web.config the sessionState was set to Off. I changed it to InProc and the session is no longer null
Upvotes: 3