Exemplo n.º 1
0
        public async void CookieDelete(string domain)
        {
            ICookieManager mr = Cef.GetGlobalCookieManager();

            foreach (Cookie cookie in await mr.VisitUrlCookiesAsync(domain, false))
            {
                int num = await mr.DeleteCookiesAsync(domain, cookie.Name);
            }
        }
Exemplo n.º 2
0
        private async Task <bool> ClearAllCookie()
        {
            ICookieManager cookieManager = Cef.GetGlobalCookieManager();

            if (!await cookieManager.FlushStoreAsync())
            {
                return(false);
            }
            int num = await cookieManager.DeleteCookiesAsync((string)null, (string)null);

            return(true);
        }
 /// <summary>
 /// 删除cookies
 /// </summary>
 public void DeleteCookies()
 {
     cookieManager.DeleteCookiesAsync();
 }