Page 1 of 1

How to set saving cookies in JCEF?

PostPosted: Wed Apr 15, 2020 6:55 am
by DanielGreka
I built the last version of JCEF yesterday.
But it can't save cookies.
My code:
Code: Select all
if (!CefApp.startup (null))
{
      throw new RuntimeException ("Can't startup CEF browser.");
}

CefSettings settings = new CefSettings ();
settings.windowless_rendering_enabled = false;
settings.cache_path = cacheDirectory;
//settings.persist_session_cookies = true;
settings.log_severity = CefSettings.LogSeverity.LOGSEVERITY_DISABLE;
settings.locale = "ru";
cefApp = CefApp.getInstance (settings);

_cefClient = cefApp.createClient ();
_cefBrowser = _cefClient.createBrowser ("https://google.com", false, false);


What is wrong with cookies? The cache saving works well. I can't find solution of my problem in internet.

Re: How to set saving cookies in JCEF?

PostPosted: Wed Apr 15, 2020 2:40 pm
by magreenblatt
What JCEF version are you using? It could be this issue that was recently fixed in CEF.

Re: How to set saving cookies in JCEF?

PostPosted: Thu Apr 16, 2020 12:55 am
by DanielGreka
magreenblatt wrote:What JCEF version are you using? It could be this issue that was recently fixed in CEF.


Yes, you are right. I compile jcef with latest cef bins and cookies work.