cookiemanager class : ContainsCookie(string,string) method
Description
Returns whether the cookies associated with the specified URL contains a cookie with the specified name.
Syntax
instance.ContainsCookie(string url, string name)
Arguments
Class | Name | Description |
string | url | URL. |
string | name | Cookie name. |
Return value
Class | Description |
bool | Whether contains the specified cookie. |
Sample code
1: | cookiemanager cm; |
2: | bool exist = cm.ContainsCookie("https://example.com", "example_cookie"); |
Notes
If the cookie name exists, returns true. Returns false if not.
Links for reference
None.