SessionStateSection::StateNetworkTimeout Property
.NET Framework (current version)
Gets or sets the amount of time the network connection between the Web server and the state server can remain idle.
Assembly: System.Web (in System.Web.dll)
public: [ConfigurationPropertyAttribute("stateNetworkTimeout", DefaultValue = "00:00:10")] [TypeConverterAttribute((TimeSpanSecondsOrInfiniteConverter^::typeid))] property TimeSpan StateNetworkTimeout { TimeSpan get(); void set(TimeSpan value); }
Property Value
Type: System::TimeSpanThe time, in seconds, that the network connection between the Web server and the state server can remain idle before the session is abandoned. The default value is 10 seconds.
This sessionStateSection attribute is required when the Mode property is set to StateServer.
The following code example demonstrates how to get the StateNetworkTimeout property. Refer to the code example in the SessionStateSection class topic to learn how to access the SessionStateSection object.
.NET Framework
Available since 2.0
Available since 2.0
Show: