System.Net.Cookie.Expires Property

Gets or sets the expiration date and time for the System.Net.Cookie as a DateTime.

Syntax

public DateTime Expires { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

Setting the Cookie.Expires property to DateTime.MinValue makes this a session System.Net.Cookie, which is its default value.

The DateTimeKind property of Cookie.Expires is used to determine if the System.Net.Cookie is set in DateTimeKind.Local or DateTimeKind.Utc. If the DateTimeKind property is set to DateTimeKind.Unspecified, then DateTimeKind.Utc is assumed.

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0