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.