System.Web 2.0.0.0 System.Configuration.ConfigurationSection

The class refers to the element in the Machine.config or Web.config configuration file identified by the sessionState tag.

When a new client begins interacting with a Web application, a session ID is issued and associated with all the subsequent requests from the same client during the time that the session is valid. This ID is used to maintain server-side state associated with the client session across requests. The controls how the ASP.NET application establishes and maintains this association on behalf of each client.

This mechanism is very flexible and gives you the ability to host session-state information out of process and to track state without using cookies, among other things.

Configures the session state for a Web application.

- Constructor

  The constructor is not intended to be used directly from your code. It is called by the ASP.NET configuration system. You obtain an instance of the class by using the method.

  Initializes a new instance of the class.

  2.0.0.0
- Property
  System.Configuration.ConfigurationProperty("allowCustomSqlDatabase", DefaultValue="False")
  System.Boolean To be added. To be added.

  Gets or sets a value indicating whether the user can specify the initial catalog value in the property.

  2.0.0.0
- Property
  System.Configuration.ConfigurationProperty("cookieless")
  System.Web.HttpCookieMode To be added.

  There are two ways that session state can store the unique ID that associates the client with a server session: by storing an HTTP cookie on the client or by encoding the session ID in the URL. Storing the session ID in the cookie is more secure but requires the client browser to support cookies.

  For applications that allow clients that do not support cookies, such as a variety of mobile devices, the session ID may be stored in the URL. The URL option has several drawbacks. It requires that the links on the site be relative and that the page be redirected at the beginning of the session with new query-string values, and it exposes the session ID right in the query string, where it can be picked up for use in a security attack.

  You are encouraged to use the cookieless mode only if you need to support clients that lack cookie support.

  Session state also supports two additional options: and . The former enables the session-state module to determine what mode (cookie or cookieless) is used on a per-client basis based on the browser capabilities. The option performs a handshake with the browser to verify whether a cookie may be stored, and therefore requires an additional request to make the determination. If you need to support cookieless clients, strongly consider using to generate cookieless URLs only for clients that require them.

  With UP.Browser 4.1 or UP.Browser 3.2, always behaves as if the value of the property of the object is false, unless the property in the section of Web.config has been explicitly set to true.

  In ASP.NET version 1.1, the options for this setting were true or false, but with ASP.NET 2.0, the choices are expanded, and is now the default setting. If your Web application has the property set to a Boolean value, then should work as expected for these browsers.

  Gets or sets a value indicating whether cookies are used to identify client sessions.

  2.0.0.0
- Property
  System.Configuration.ConfigurationProperty("cookieName", DefaultValue="ASP.NET_SessionId")
  System.String To be added.

  The default value is "ASP.NET_SessionId".

  Gets or sets the cookie name.

  2.0.0.0
- Property
  System.Configuration.ConfigurationProperty("customProvider", DefaultValue="")
  System.String To be added.

  The provider is only used when the session-state mode is set to .

  Gets or sets the name of the custom provider from the collection.

  2.0.0.0
- Property
  System.Configuration.ConfigurationElementProperty To be added. To be added. To be added. 2.0.0.0
- Property
  System.Configuration.ConfigurationProperty("mode", DefaultValue="InProc")
  System.Web.SessionState.SessionStateMode To be added.

  The is not a required attribute and can be inherited from a higher level in the configuration hierarchy or from the default value. However, the configuration handler for this section will always write out the mode based on the current inherited value when writing this section.

  Gets or sets a value specifying where to store the session state.

  2.0.0.0
- Property
  System.Configuration.ConfigurationProperty("partitionResolverType", DefaultValue="")
  System.String To be added.

  If the property is specified, the property and property are ignored. The can be locked via the property like other properties within the <sessionState> Element for <system.web> element. The connection string returned by the will be used on every request to connect to the appropriate server location for the remainder of the request. If the connection string is invalid, ASP.NET will throw the same exception that is thrown when the configured connection string to the server is invalid.

  This property is used to partition session-state data across multiple backend nodes when in SQL or state-server mode.

  Gets or sets a value specifying where to store the session state.

  2.0.0.0
- Method
  System.Void To be added. To be added. 2.0.0.0
- Property
  System.Configuration.ConfigurationPropertyCollection To be added. To be added. To be added. 2.0.0.0
- Property
  System.Configuration.ConfigurationProperty("providers")
  System.Configuration.ProviderSettingsCollection To be added.

  This property refers to the information contained by the configuration tag identified by the providers element.

  Gets the current providers.

  2.0.0.0
- Property
  System.Configuration.ConfigurationProperty("regenerateExpiredSessionId", DefaultValue="True")
  System.Boolean To be added.

  By default, only cookieless URLs are reissued when is enabled.

  Gets or sets a value indicating whether the session Id will be re-issued when an expired session ID is specified by the client.

  2.0.0.0
- Property
  System.Configuration.ConfigurationProperty("sessionIDManagerType", DefaultValue="")
  System.String To be added.

  The overrides session ID generation and management for custom session ID management schemes. The default value is an empty string ("").

  Gets or sets a value specifying the fully qualified type of session ID Manager.

  2.0.0.0
- Property
  System.Configuration.ConfigurationProperty("sqlCommandTimeout", DefaultValue="00:00:30")
  System.ComponentModel.TypeConverter(typeof(System.Configuration.TimeSpanSecondsOrInfiniteConverter))
  System.TimeSpan To be added. To be added.

  Gets or sets the duration time-out for the SQL commands using the SQL Server session state mode.

  2.0.0.0
- Property
  System.Configuration.ConfigurationProperty("sqlConnectionString", DefaultValue="data source=localhost;Integrated Security=SSPI")
  System.String To be added.

  This sqlConnectionString attribute is required when is set to .

  To use the session state mode, you must run the InstallSqlState.sql SQL script (which is installed in [drive:]\WINDOWS\Microsoft.NET\Framework\VersionNumber as part of the default .NET Framework installation) on the computer running SQL Server that will store the session state. This creates a database called ASPState with new stored procedures and creates new ASPStateTempApplications and ASPStateTempSessions tables in the TempDB database.

  Gets or sets the SQL connection string.

  2.0.0.0
- Property
  System.Configuration.ConfigurationProperty("stateConnectionString", DefaultValue="tcpip=loopback:42424")
  System.String To be added.

  This property specifies the server name and the port when the session state is stored remotely. The stateConnectionString attribute is required when the is set to .

  Make sure the ASP.NET state service is running on the remote server that stores the session-state information. This service is installed with ASP.NET and is located by default at [drive:]\WINDOWS\Microsoft.NET\Framework\VersionNumber\aspnet_state.exe.

  Gets or sets the state server connection string.

  2.0.0.0
- Property
  System.Configuration.ConfigurationProperty("stateNetworkTimeout", DefaultValue="00:00:10")
  System.ComponentModel.TypeConverter(typeof(System.Configuration.TimeSpanSecondsOrInfiniteConverter))
  System.TimeSpan To be added.

  This sessionStateSection attribute is required when the property is set to .

  Gets or sets the amount of time the network connection between the Web server and the state server can remain idle.

  2.0.0.0
- Property
  System.Configuration.ConfigurationProperty("timeout", DefaultValue="00:20:00")
  System.Configuration.TimeSpanValidator(MinValueString="00:01:00", MaxValueString="10675199.02:48:05.4775807")
  System.ComponentModel.TypeConverter(typeof(System.Configuration.TimeSpanMinutesOrInfiniteConverter))
  System.TimeSpan To be added.

  The property cannot be set to a value greater than 525,601 minutes (1 year).

  Gets or sets the session time-out

  2.0.0.0
- Property
  System.Configuration.ConfigurationProperty("useHostingIdentity", DefaultValue="True")
  System.Boolean To be added. To be added.

  Gets or sets a value specifying the whether the session state will use client impersonation when available, or will always revert to the hosting identity.

  2.0.0.0