Ray's Asp.net Blog
Answers and code snippets from ASP.NET projects (Webforms/MVC/Classic ASP)
Pages
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment