Export (0) Print
Expand All

FormsAuthentication.Timeout Property

Gets the time-out value, in minutes, that is specified in the configuration file.

Namespace:  System.Web.Security
Assembly:  System.Web (in System.Web.dll)

public static TimeSpan Timeout { get; }

Property Value

Type: System.TimeSpan
The time-out value in minutes that is specified in the configuration file. The default is 30 minutes.

This property gets the time, in minutes, after which the cookie (ticket) expires. If the SlidingExpiration property is true, the Timeout property is a sliding value, and it expires at the specified number of minutes after the time that the last request was received. To prevent compromised performance, and to avoid multiple browser warnings for users who have cookie warnings turned on, the cookie is updated when more than half of the specified time has elapsed. This can cause a loss of precision.

.NET Framework

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2014 Microsoft