问题
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:
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.
来源:https://stackoverflow.com/questions/20524845/delphi-chromium-local-storage