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 are the advantages of using ioc containers in an application?
What are Filters in MVC?
What is allowanonymous in mvc?
What is the advantage of using MVC pattern?
What is route in mvc what is default route in mvc?
What is mvc dapper?
What is the purpose of mvc?
Explain what are the steps for the execution of an mvc project?
How can we implement validation in mvc?
What is mvc mvp mvvm?
Explain the role of components presentation, abstraction and control in mvc?
What is mvc (model view controller)?