cookiemanager class : DeleteCookie(cookie) method

Description

Deletes the cookie whose parameter matches the argument.

Syntax

instance.DeleteCookie(cookie coo)

Arguments

ClassNameDescription
cookiecooA cookie.

Return value

None.

Sample code

1:

browser mainBrowser;

2:

cookiemanager cm;

3:

list{cookie} coos = cm.GetCookies(mainBrowser.Url); // All cookies in the current URL.

4:

cookie firstChild = coos[0];

5:

cm.DeleteCookie(firstChild);

Notes

Deletes a cookie that matches the name, domain, and path.

It affects all browsers.

Links for reference

None.

Copyright © Cooker All rights reserved.