Include Protected Members
Include Inherited Members
Gets any cookie headers present in the request.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.
Overload List
Name | Description | |
---|---|---|
![]() ![]() |
GetCookies(HttpRequestHeaders) | Gets any cookie headers present in the request. |
![]() ![]() |
GetCookies(HttpRequestHeaders, String) | Gets any cookie headers present in the request that contain a cookie state whose name that matches the specified value. |
Top
Remarks
Each Cookie header is represented as one CookieHeaderValue instance. A CookieHeaderValue contains information about the ___domain, path, and other cookie information as well as one or more CookieState instances. Each CookieState instance contains a cookie name and whatever cookie state is associate with that name. The state is in the form of a NameValueCollection which on the wire is encoded as HTML Form URL-encoded data. This representation allows for multiple related "cookies" to be carried within the same Cookie header while still providing separation between each cookie state.