ICookieManagerDeleteCookies Method |
Version 130.1.90
Delete all cookies that match the specified parameters.
If both url and name values are specified all host and domain cookies matching both will be deleted.
If only url is specified all host cookies (but not domain cookies) irrespective of path will be deleted.
If url is empty all cookies for all hosts and domains will be deleted.
Cookies can alternately be deleted using the Visit*Cookies() methods.
Namespace: CefSharpAssembly: CefSharp (in CefSharp.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax bool DeleteCookies(
string url = null,
string name = null,
IDeleteCookiesCallback callback = null
)
bool DeleteCookies(
String^ url = nullptr,
String^ name = nullptr,
IDeleteCookiesCallback^ callback = nullptr
)
Parameters
- url String (Optional)
- The cookie URL.
- name String (Optional)
- The name of the cookie.
- callback IDeleteCookiesCallback (Optional)
- If non-NULL it will be executed asynchronously on the CEF UI thread after the cookies have been deleted.
Return Value
BooleanReturns false if a non-empty invalid URL is specified or if cookies cannot be accessed; otherwise, true.
See Also