Page 1 of 1

Re: Cookies dosn't store

Posted: Wed Sep 20, 2017 9:21 am
by salvadordf
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.

Re: Cookies dosn't store

Posted: Thu Sep 21, 2017 2:15 am
by snoop
salvadordf wrote: Wed Sep 20, 2017 9:21 am Previously you had to set a property in TChromium to set a custom cookie directory
Hello, can you write please how to do it?

Re: Cookies dosn't store

Posted: Thu Sep 21, 2017 6:25 am
by salvadordf
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 :

Code: Select all

GlobalCEFApp.cookies := 'cookies';
And also this in your main form :

Code: Select all

Chromium1.CMStoragePath := 'cookies';