I know that the SessionState
attribute can be used to set the SessionStateBehavior
for requests to a particular MVC controller. My question is, how can I determine the current request's SessionStateBehavior
programatically? I see that HttpContext
has an internal property for this, but is there any way to get at this publicly?
In particular, I'd like to know whether the session state behavior was disabled.