Which are the various modes of storing ASP.NET session?

 Posted by ArticlesMaint on 9/17/2009 | Category: ASP.NET Interview questions | Views: 3600

In Proc: - In this mode Session, state is stored in the memory space of the Aspnet_wp.exe process. This is the default setting. If the IIS reboots or web application restarts then session state is lost.

State Server: -In this mode Session state is serialized and stored in a separate process (Aspnet_state.exe); therefore, the state can be stored on a separate computer (a state server).

SQL SERVER: - In this mode Session, state is serialized and stored in a SQL Server database.
Session state can be specified in <session State> element of application configuration file. Using State Server and SQL SERVER session state can be shared across web farms but note this comes at speed cost as ASP. NET needs to serialize and desterilize data over network repeatedly.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response