CookieOptions.Expires Property

Definition

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

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

Property Value

The expiration date and time for the cookie.

Applies to