CEF not save the value of localStorage after close browser

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

CEF not save the value of localStorage after close browser

Postby nguyentuan » Mon Apr 24, 2017 2:38 am

I am having a problem that CEF browser doesn't store localStorage after close and reopen the browser, how can I fix it, thank you.
nguyentuan
Newbie
 
Posts: 3
Joined: Mon Apr 24, 2017 2:34 am

Re: CEF not save the value of localStorage after close brows

Postby magreenblatt » Mon Apr 24, 2017 11:22 am

Are you setting a cache path value via CefSettings.cache_path for example?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: CEF not save the value of localStorage after close brows

Postby HarmlessDave » Mon Apr 24, 2017 12:19 pm

CEF3 does not share its cache location with Google Chrome, at least for Windows. If you set up your own permanent location for the folder, such as (for Windows) Users > (USER) > AppData > Local > YourAppName, then local storage, cookies, pages, etc. can be cached between sessions.
HarmlessDave
Expert
 
Posts: 370
Joined: Fri Jul 11, 2014 2:02 pm

Re: CEF not save the value of localStorage after close brows

Postby nguyentuan » Mon Apr 24, 2017 10:12 pm

magreenblatt wrote:Are you setting a cache path value via CefSettings.cache_path for example?


Thank you very much. I have found that I don't setting the catch path yet. And after I setting it, it worked. :D :D :D
nguyentuan
Newbie
 
Posts: 3
Joined: Mon Apr 24, 2017 2:34 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 72 guests