What I did was set the cache_path when initialising CefApp.getInstance:
- Code: Select all
CefSettings settings = new CefSettings();
File cachePath = new File(Modules.conf.userDir+"/cache");
cachePath.mkdirs();
System.out.println("Setting cache path to: "+cachePath.getAbsolutePath());
settings.cache_path = cachePath.getAbsolutePath();
cefApp_ = CefApp.getInstance(settings);
I am able to visit cookies created on my website, but they do not get written to the disk. This worked before the cookie handling got revamped about a year ago. I was able to set cookie storage path via CefCookieManager.createManager(cookiePath, false); then.
Am I missing something, does something else need to be set also so cookies will be written to disk?