LocalStorage across multiple instances

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.

LocalStorage across multiple instances

Postby Christian » Wed Jul 18, 2018 9:33 am

I could not find any documentation about whether multiple instances of the same application have access to the same localStorage data. I have set the CachePath in my CefSettings, but it seems that when an instance already exists, then the second instance does not load the localStorage data. Only the first instance is able to work with the data. Is this a bug? If not, can anyone point me into the right direction to how I can share the localStorage accross multiple instances? :roll:
Christian
Newbie
 
Posts: 4
Joined: Wed Jul 18, 2018 9:30 am

Re: LocalStorage across multiple instances

Postby magreenblatt » Wed Jul 18, 2018 6:58 pm

You can't share storage across multiple main process instances. You can instead create multiple browsers using the same instance. Google "application launch mutex".
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: LocalStorage across multiple instances

Postby Christian » Tue Feb 19, 2019 8:58 am

Alright, thanks for clarifying. I was not able to find this info reading the official wiki.
Christian
Newbie
 
Posts: 4
Joined: Wed Jul 18, 2018 9:30 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 73 guests