Page.EnableSessionState equivalent in ASP.NET MVC

前端 未结 2 808
梦谈多话
梦谈多话 2020-12-31 06:19

With ASP.NET WebForms it is possible to set the session state mode in the page directive:

<%@ Page EnableSessionState=\"true|false|ReadOnly\" %>
         


        
2条回答
  •  悲哀的现实
    2020-12-31 06:43

    It seems that with ASP.NET MVC 3 it will be possible to have session-less controllers, e.g. see ScottGu's blog post or this post by Keith Dahlby.

提交回复
热议问题