Ray's Asp.net Blog
Answers and code snippets from ASP.NET projects (Webforms/MVC/Classic ASP)
Pages
(Move to ...)
Event registration app with QR/Paypal
Home
▼
Thursday, December 6, 2012
How to disable session in ASP.NET MVC?
Two levels:
Application level is in web.config
<sessionState mode="Off" />
Controller level
[SessionState(SessionStateBehaviour.Disabled)]
public class MyController : Controller
{}
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment