System.Web.Security.FormsAuthenticationTicket.Expiration Property

Gets the local date and time at which the forms-authentication ticket expires.

Syntax

public DateTime Expiration { get; }

Value

Documentation for this section has not yet been entered.

Remarks

If the System.Web.Security.FormsAuthenticationTicket is created using the FormsAuthenticationTicket.#ctor(string, bool, int) constructor that does not supply a parameter for an expiration date and time, the FormsAuthenticationTicket.Expiration property returns a value based on the current local date and time plus the value of the timeout parameter supplied to the constructor.

If the System.Web.Security.FormsAuthenticationTicket was created using a constructor that takes an expiration parameter, the FormsAuthenticationTicket.Expiration property returns the value supplied to the expiration parameter.

Requirements

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