2
votes

I am using Delphi Chromium Embedded DCEF3. If I run my application locally I am able to store data into Local Storage and retrieve it. If I close the application and run it again, the data is gone because Delphi Chromium Embedded does not seem to retain the data between sessions. Everything works fine if I run the application in Chrome and I know that is because Delphi Chromium Embedded DCEF3 uses files to store information. Do you know how to retain local storage data between sessions?

Thank you very much

1
It look like I need to change the value of the cache_path variable. Does anybody knows where and how? Please - Dino

1 Answers

1
votes

Add the following at the end of your unit:

initialization
  CefCache := 'e:\temp\cef';

CefCache will be used at the initialisation of the dcef in ceflib.pas on line 7772.