HttpSessionStateContainer.Timeout Property

Gets and sets the amount of time, in minutes, allowed between requests before the session-state provider terminates the session.

Namespace: System.Web.SessionState
Assembly: System.Web (in system.web.dll)

public:
virtual property int Timeout {
	int get () sealed;
	void set (int value) sealed;
}
/** @property */
public final int get_Timeout ()

/** @property */
public final void set_Timeout (int value)

public final function get Timeout () : int

public final function set Timeout (value : int)

Not applicable.

Property Value

The time-out period, in minutes.

Exception typeCondition

ArgumentException

An attempt was made to set the Timeout value to an integer value less than 1.

- or -

An attempt was made to set the Timeout value to an integer value greater than the maximum allowed when Mode is set to InProc or StateServer. The maximum allowed is 525,600 (one year).

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: