SetCookieHeaderValue.Expires Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.