Skip to main content

Specifying read-only session in ASP.NET MVC -


Is there a way to specify that a given controller or work uses session status in the read only manner is? In "old" ASP.NET, we used to do something like this:

  & lt;% @ Page EnableSessionState = "Read Only"% & gt;  

Is an asp.net mvc equivalent? I allow my application to give multiple requests simultaneously from the same client and completely shutting down the session - I have no choice.

The same question was asked here:

Approved answer is a custom root handler Is to create which ends binding for the session at the end. It does not really answer your question (which is to declare many actions to use only session access to read), but it seemed remarkably remarkable.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -