CookieOptions.Expires Property

Definition

Gets or sets the expiration date and time for the cookie.

public DateTime? Expires { get; set; }
member this.Expires : Nullable<DateTime> with get, set
Public Property Expires As Nullable(Of DateTime)

Property Value

The expiration date and time for the cookie.

Applies to