How can you use the Session
of the HttpContext
inside a Web Api 2 controller?
The Session object is null, and while I've seen various ways of enabling session state in the first version of Web Api for ASP.Net, none of these seem to apply to Web Api 2.
Reference for Web Api 1: Accessing Session Using ASP.NET Web API
I realise this isn't an approach everyone agrees with, but it would be useful to have a state-full API in an application I'm working on.