cookiemanager class : DeleteCookie(cookie) method
Description
Deletes the cookie whose parameter matches the argument.
Syntax
instance.DeleteCookie(cookie coo)
Arguments
Class | Name | Description |
cookie | coo | A 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.