ICookieManager.DeleteCookies Method |
Version 91.1.160
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:
CefSharp
Assembly:
CefSharp (in CefSharp.dll) Version: 91.1.160.0 (91.1.160.0)
Syntaxbool DeleteCookies(
string url = null,
string name = null,
IDeleteCookiesCallback callback = null
)
bool DeleteCookies(
String^ url = nullptr,
String^ name = nullptr,
IDeleteCookiesCallback^ callback = nullptr
)
Parameters
- url (Optional)
- Type: System.String
The cookie URL. - name (Optional)
- Type: System.String
The name of the cookie. - callback (Optional)
- Type: CefSharp.IDeleteCookiesCallback
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