What are session state modes in ASP.NET?

devquora
devquora

Posted On: Feb 22, 2018

 

Session State Modes uses WebForms to solve some problems like reliability and scalability. It can be stored on in different places and depending upon that, ASP.NET supports the following session state modes.

  • InProc mode: This is the default mode in ASP.NET and it is stored in the web server memory.
  • StateServer mode: This follows a process called the ASP.NET State Service. This is where the Session State is stored. When this app gets restarted, the Session State gets permanently stored or preserved on it.
  • SQLServer mode: This stores the Session State on SQL Database. It gets preserved when the web app is restarted.
  • Custom mode: The developer can set up/provide a customized storage provider.
  • Off mode: This disables the Session State mode.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    ASP.NET Interview Questions

    What is ASP according to you?

    ASP is Active Server Pages is a useful tool by Microsoft to create user friendly web pages...

    ASP.NET Interview Questions

    What are the main advantages of using ASP.NET?

    ASP.NET is highly beneficial over ASP. It is the next level of the ASP framework. The advantages of ASP.NET are given here...

    ASP.NET Interview Questions

    What are validators and list some validators of ASP.NET?

    Validation in ASP.NET is an important thing as it is helpful in saving storage space...