다음을 통해 공유


HttpCookie.Expires Property

Definition

Gets or sets experation date of the cookie. An experation date sets the cookie to expire at a specific date instead of when the client closes. NOTE: It is generally recommended that you use MaxAge over Expires.

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

Property Value

Applies to