Provides a set of properties and methods that are used to manage cookies. This class cannot be inherited.
Assembly: System (in System.dll)
Initializes a new instance of theclass.
|Cookie(String, String, String)|
|Cookie(String, String, String, String)|
Gets or sets a comment that the server can add to a.
Gets or sets a URI comment that the server can provide with a.
Gets or sets the discard flag set by the server.
Gets or sets the URI for which theis valid.
Gets or sets the current state of the.
Gets or sets the expiration date and time for the DateTime.as a
Determines whether a page script or other active content can access this cookie.
Gets or sets the name for the.
Gets or sets the URIs to which theapplies.
Gets or sets a list of TCP ports that theapplies to.
Gets or sets the security level of a.
Gets the time when the cookie was issued as a DateTime.
Gets or sets the Value for the .
Gets or sets the version of HTTP state maintenance to which the cookie conforms.
Theclass is used by a client application to retrieve information about cookies that are received with HTTP responses. The following cookie formats are supported during parsing of the HTTP response headers: the original Netscape specification, RFC 2109, and RFC 2965.
For a list of initial property values for an instance of, see the various constructors.
Available since 8
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Available since 8.1
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.