What are Session state modes in ASP.NET?


  • : 308
  • : 6
    Previous Next

    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.

  • you can suggest other answer in comment box


  • Exam: ASP .NET Interview Questions





    Recommended Learning for you

    Close(X)
    Subscribe here for free mock test on IAS PCS SSC and other competitive exam. Signup here to get SSC CGL Solution and main exam study material