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 int Timeout { get; set; }

Property Value

Type: System.Int32

The time-out period, in minutes.

Exception Condition
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).

.NET Framework
Available since 2.0
Return to top
Show: