Share LocalStorage with browsers

0

Is there any way to share localstorage with multiple browsers? For example, I set localStorage.setItem("lang", "pt"); in Chrome, however, I would like this value to be available in Firefox and other browsers that support LocalStorage.

OBJECTIVE: My goal with this is to make a way for my system to understand the language the client chooses and which I have saved in the localstorage and retrieve at other times in other browsers.

Is there any way?

    
asked by anonymous 01.09.2017 / 15:41

1 answer

5

It is not possible, since localStorage is an implementation of an HTML5 specification, each browser implements the way it wants and also the location of that data changes from one browser to another.

What you can do is to save this information to the server and "set" the values in localStorage of each browser the user accesses.

Reference: html5 Local Storage Across Different Browsers

    
01.09.2017 / 16:44