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.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Cookies dosn't store

Post Reply
User avatar
salvadordf
Posts: 4620
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Cookies dosn't store

Post 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.
snoop
Posts: 75
Joined: Mon Jul 10, 2017 12:06 pm

Re: Cookies dosn't store

Post 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?
User avatar
salvadordf
Posts: 4620
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Cookies dosn't store

Post 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';
Post Reply