How to maintain session in mvc?
Answer / Shashi Kant
In ASP.NET MVC, you can use the System.Web.SessionState.HttpSessionStateBase class to work with sessions. Sessions store data specific to a user for the duration of their visit or until it times out. To access the Session object in your controller, simply write `HttpSessionStateBase Session`.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the difference between temp data, view, and view bag?
What is difference between asp.net mvc and asp.net webforms?
What is difference between mvc and hmvc?
What is a glimpse?
What are different filters in mvc?
What is the advantage of using MVC pattern?
Which is better mvvm or mvc?
What are action selectors in mvc?
What is get and post actions types?
What is the need of viewmodel in mvc?
What is the difference between adding routes, to a webform application and an mvc application?
What’s new in the latest version of mvc?