How to control Session behavior in Asp.Net MVC?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Guest User130 reputationPosted Jun 10, 2016, 3:51 AM EDT
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.