HttpSessionState.Mode Property
.NET Framework 2.0
Gets the current session-state mode.
Namespace: System.Web.SessionState
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
For information about how to configure your server for StateServer or SQLServer session-state storage mode, see ASP.NET Session State.
The following code example sets the mode session attribute to SQLServer in the Web.config file. For SQL Server session mode, the sqlConnectionString attribute is also required.
<configuration>
<system.web>
<sessionState
mode="SQLServer"
sqlConnectionString="Data Source=localhost;Integrated Security=SSPI"
cookieless="true"
timeout="30" />
</system.web>
</configuration>
Community Additions
ADD
Show: