PdfPrep.com

Which SessionState mode should you use?

You need to configure session storage in the web.config file to meet the technical requirements for scalability.

Which SessionState mode should you use? (Each correct answer presents a complete solution. Choose all that apply.)
A . StateServer
B . InProc
C . AutoDetect
D . SqlServer

Answer: A,D

Explanation:

ASP.NET session state supports several different storage options for session data. Each option is identified by a value in the SessionStateMode enumeration.

The following list describes the available session state modes:

* StateServer mode, which stores session state in a separate process called the ASP.NET state service. This ensures that session state is preserved if the Web application is restarted and also makes session state available to multiple Web servers in a Web farm.

* SQLServer mode stores session state in a SQL Server database. This ensures that session state is preserved if the Web application is restarted and also makes session state available to multiple Web servers in a Web farm.

* InProc mode, which stores session state in memory on the Web server. This is the default.

* Custom mode, which enables you to specify a custom storage provider.

* Off mode, which disables session state.

References: https://msdn.microsoft.com/en-us/library/ms178586.aspx

Exit mobile version