Hi,
There was a bug in the cookie manager initialization. I just updated CEF4Delphi with the fix.
Please download the latest version from github.
Previously you had to set a property in TChromium to set a custom cookie directory but now that's done inside the GlobalCEFApp initialization.
Now you just have to set the GlobalCEFApp.Cookies property.
Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
Cookies dosn't store
- salvadordf
- Posts: 4620
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Cookies dosn't store
Hello, can you write please how to do it?salvadordf wrote: Wed Sep 20, 2017 9:21 am Previously you had to set a property in TChromium to set a custom cookie directory
- salvadordf
- Posts: 4620
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Cookies dosn't store
Now you only have to set GlobalCEFApp.cookies with your cookies directory. There's a commented example in most of the demos inside the DPR file.
CEF4Delphi will initialize the cookie manager to use that directory inside the GlobalCEFApp.StartMainProcess call.
In previous versions you also had to set TChromium.CMStoragePath with the same cookie directory but now this duplicity is gone.
TChromium.CMStoragePath also ignored the GlobalCEFApp.PersistSessionCookies setting and it was always setting it to false.
Previously you had to add this to the DPR :
And also this in your main form :
CEF4Delphi will initialize the cookie manager to use that directory inside the GlobalCEFApp.StartMainProcess call.
In previous versions you also had to set TChromium.CMStoragePath with the same cookie directory but now this duplicity is gone.
TChromium.CMStoragePath also ignored the GlobalCEFApp.PersistSessionCookies setting and it was always setting it to false.
Previously you had to add this to the DPR :
Code: Select all
GlobalCEFApp.cookies := 'cookies';
Code: Select all
Chromium1.CMStoragePath := 'cookies';