System.Web.Security.FormsAuthentication.SlidingExpiration Property

Gets a value indicating whether sliding expiration is enabled.

Syntax

public static bool SlidingExpiration { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The FormsAuthentication.SlidingExpiration property value is set using the slidingExpiration attribute of the forms configuration element.

Sliding expiration resets the expiration time for a valid authentication cookie if a request is made and more than half of the timeout interval has elapsed. If the cookie expires, the user must re-authenticate. Setting the FormsAuthentication.SlidingExpiration property to false can improve the security of an application by limiting the time for which an authentication cookie is valid, based on the configured timeout value.

We recommend that if you configure requireSSL as false, you also configure slidingExpiration as false, to reduce the amount of time for which a ticket is valid.

Requirements

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