My MVC4(beta) Azure WebRole has Controllers for WebApi access. This works fine, except for one small catch: it appears that Global.asax.cs Session_Start is only being called when I access a MVC page (HomeController, for example).
The scenario: My WebApi controllers need access to (in process) Session State storage. I access the Session State object in Start_Session and cache it for use by the WebApi Controllers. This works fine, as long as I access a single MVC-Web-Page first, but if I access the WebApi first, my Session State cache is not initialized, but apparently the routing table is, so Global.asax is being accessed.
Any tips on the initialization or Session State access in this scenario? I need to access the WebApi controllers without first accessing a web page...
Thanks! R