Редагувати

Поділитися через


HttpSessionStateContainer.Timeout Property

Definition

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

public:
 property int Timeout { int get(); void set(int value); };
public int Timeout { get; set; }
member this.Timeout : int with get, set
Public Property Timeout As Integer

Property Value

The time-out period, in minutes.

Implements

Exceptions

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

Applies to

See also