ICookieManagerDeleteCookies Method |
Version 118.6.80 Delete all cookies that match the specified parameters. If bothurl andname values are specified all host and domain cookies matching both will be deleted. If onlyurl is specified all host cookies (but not domain cookies) irrespective of path will be deleted. Ifurl 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: 118.6.80.0 (118.6.80.0)
SyntaxboolDeleteCookies(stringurl =null,stringname =null,IDeleteCookiesCallbackcallback =null)
boolDeleteCookies(String^url =nullptr,String^name =nullptr,IDeleteCookiesCallback^callback =nullptr)
Parameters
- url (Optional)
- Type: SystemString
The cookie URL. - name (Optional)
- Type: SystemString
The name of the cookie. - callback (Optional)
- Type: CefSharpIDeleteCookiesCallback
If non-NULL it will be executed asynchronously on the CEF UI thread after the cookies have been deleted.
Return Value
Type:
BooleanReturns false if a non-empty invalid URL is specified or if cookies cannot be accessed; otherwise, true.
See Also