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

ClassNameDescription
stringurlURL.
stringnameCookie name.

Return value

ClassDescription
boolWhether 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.

Copyright © Cooker All rights reserved.