How to control Session behavior in Asp.Net MVC?
How to control Session behavior in Asp.Net MVC?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Guest UserPosted Jun 10, 2016, 7:51 AM
In Asp.Net MVC4, SessionState attribute provides you more control over the behavior of session-state by specifying the value of SessionStateBehavior enumeration as shown below:
Value Description
Default: The default Asp.Net behavior is used to determine the session state behavior.
Disabled: Session state is disabled entirely.
ReadOnly :Read-only session state behavior is enabled.
Required: Full read-write session state behavior is enabled.