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