Exemple #1
0
        private void setCefCookie(string c)
        {
            //var cookieManager = Cef.GetGlobalCookieManager();
            //cookieManager .VisitUrlCookies()
            //CefSharp.Cookie aCookie = new Cookie();

            string[] item = c.Split('=');
            if (item.Length == 2)
            {
                string name  = item[0];
                string value = item[1];
                //InternetSetCookie(m_url, name, value);
                //      aCookie.Name = name;
                //    aCookie.Value = value;
                DateTime d = new DateTime(2020, 1, 1);
                CEF.SetCookie(m_url, "127.0.0.1", name, value, d);
            }
            //    cookieManager.SetCookieAsync(m_url, aCookie);
        }