Why should I move away form using HTTPContext Session State in my ASP .Net MVC applications?
- 阅读更多 关于 Why should I move away form using HTTPContext Session State in my ASP .Net MVC applications?
I recall reading a couple of places that folks are discouraging the use of HTTPContext.Current.Session state in ASP .Net web applications. Can someone explain some of the reasoning behind this recent trend? ARe there solid technical reasons for this? Thanks, JohnB Adam Heeg First, MVC is not webforms, it is meant to be stateless. http://www.wintellect.com/blogs/jprosise/thoughts-on-asp-net-s-new-mvc-framework Second, MVC is restful in nature http://dotnetslackers.com/articles/aspnet/AnArchitecturalViewOfTheASPNETMVCFramework.aspx and according to stack overflow (lol) sessions are not restful.