Session controller less in MVC3

I heard about the session controller in MVC3.

[SessionState(SessionStateBehaviour.Disabled)] public class MyController :Controller { } 

If I use controllers without a session, then how can I view pages in my application for a specific user? What is the best practice?

0
source share
1 answer

If you want to have the idea that one user is viewing multiple pages, it is recommended that you use a standard controller with session support.

Disconnected session state controllers provide optimization for controllers that do not require session state.

By default, the ASP.NET pipeline will not process requests that belong to the same session at the same time. He serializes them, i.e. Queues them in the order in which they were received, so that they are processed sequentially, not parallelly.

http://tech-journals.com/jonow/2011/10/22/the-downsides-of-asp-net-session-state

+1
source

All Articles