How to set saving cookies in JCEF?

Having problems with building or using the JCEF Java binding? Ask your questions here.

How to set saving cookies in JCEF?

Postby DanielGreka » Wed Apr 15, 2020 6:55 am

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.
DanielGreka
Techie
 
Posts: 12
Joined: Mon Apr 13, 2020 5:15 am

Re: How to set saving cookies in JCEF?

Postby magreenblatt » Wed Apr 15, 2020 2:40 pm

What JCEF version are you using? It could be this issue that was recently fixed in CEF.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: How to set saving cookies in JCEF?

Postby DanielGreka » Thu Apr 16, 2020 12:55 am

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.
DanielGreka
Techie
 
Posts: 12
Joined: Mon Apr 13, 2020 5:15 am


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 18 guests