SetCookieHeaderValue.Expires Property

Definition

Gets or sets a value for the Expires cookie attribute.

The Expires attribute indicates the maximum lifetime of the cookie, represented as the date and time at which the cookie expires.

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

Remarks

See https://tools.ietf.org/html/rfc6265#section-4.1.2.1.

Applies to