System.Web.SessionState.HttpSessionState.Timeout Property

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

Syntax

public int Timeout { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The HttpSessionState.Timeout property can be set in the Web.config file for an application using the timeout attribute of the sessionState configuration element, or you can set the HttpSessionState.Timeout property value directly using application code.

The HttpSessionState.Timeout property cannot be set to a value greater than 525,600 minutes (1 year). The default value is 20 minutes.

Requirements

Namespace: System.Web.SessionState
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0