SessionStateSection::StateNetworkTimeout Property

 

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

Namespace:   System.Web.Configuration
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::TimeSpan

The 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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: