Different types of session mode available - State Management System

Q.   In ASP.NET what are the different types of session mode available?
- Published on 16 Jun 15

a. InProc
b. StateServer
c. SQLServer
d. All of the above

ANSWER: All of the above
 
InPorc Session Mode:

This is the default session mode in Asp.Net. Its stores session Information in Current Application Domain. There are no requirements of serialization to store data in InProc Session Mode.

StateServer Session Mode:

This is also called Out-Proc session mode. It is managed by aspnet_state.exe. In this mode server may runs on the same system, but it's outside of that main
application domain where your web site is running. It is useful in web farm and web garden scenarios.

SQL Server Session Mode:

In this session mode, the Session data is serialized and stored in the SQL Server database. We should use SQL server session mode when we need to implement Session with some more security.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)