Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

FormsAuthenticationConfiguration.Timeout Property

Gets or sets the authentication time-out.

Namespace: System.Web.Configuration
Assembly: System.Web (in system.web.dll)
[TypeConverterAttribute(typeof(TimeSpanMinutesConverter))] 
public TimeSpan Timeout { get; set; }
/** @property */
public TimeSpan get_Timeout ()

/** @property */
public void set_Timeout (TimeSpan value)

public function get Timeout () : TimeSpan

public function set Timeout (value : TimeSpan)

Not applicable.

Property Value

The amount of time in minutes after which the authentication expires. The default value is 30 minutes.

The following code example shows how to access the Timeout property. Refer to the code example in the FormsAuthenticationConfiguration class topic to learn how to get the section.

// Get the current Timeout.
System.TimeSpan currentTimeout = 
    formsAuthentication.Timeout;
          
// Set the Timeout.
formsAuthentication.Timeout = 
    System.TimeSpan.FromMinutes(10);


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
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.