Home > Interview Questions > .Net Framework > What are Session state modes in ASP.NET?

What are Session state modes in ASP.NET?

by John Prathip   on 08/09/2015   Category: .Net Framework   |  Level: Beginner   |  Views: 915    |  Points: 25     |  Silver 

ASP.NET supports different session state storage options:

In-Process is the default approach. It stores session state locally on same web server memory where the application is running.

StateServer mode stores session state in a process other than the one where application is running. Naturally, it has added advantages that session state is accessible from multiple web servers in a Web Farm and also session state will remain preserved even web application is restarted.

SQLServer mode stores session state in SQL Server database. It has the same advantages as that of StateServer.
Custom modes allows to define our custom storage provider.
Off mode disables session storage.

« What are the different validators in ASP.NET?
» How to backup table efficiently?
Post Question  |  Question Home

Recent Posts

User Responses

No response found, be the first to review this question.

Submit feedback about this code snippet

Please sign in to post feedback

Latest Posts