How ASP.NET MVC 5 precisely controls the Session operation mechanism under different Controllers

215513932-45e7133e-7905-4c72-b944-4a562f

Many people don’t know that ASP.NET’s Session is actually poisonous ! So I personally will do everything possible to avoid using the Session mechanism, so as to prevent the page from being locked (Lock) and affect the user’s operating experience. In this article, I intend to share how to precisely control the Session operation mechanism under different Controllers in ASP.NET MVC 5 of the .NET Framework, so as to prevent users from being locked by the Session and unable to browse the web in the case of multi-tab browsing.

continue reading

This article is transferred from https://blog.miniasp.com/post/2023/01/31/How-to-control-Session-State-Behavior-in-ASP-NET-MVC-5
This site is only for collection, and the copyright belongs to the original author.