Share Localstorage with browsers

Asked

Viewed 209 times

-1

Is there a way to share localstorage with multiple browsers? For example, I define 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 of my system understand the language that the client choose and that I saved in localstorage and recover at other times in other browsers.

Is there any way?

  • 1

    If it were possible, it would be a very serious security breach.

  • I’ll edit the question to see if there are any cool suggestions...

1 answer

6


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

What can be done is you save this information on the server and "set" the values on localStorage of each browser the user accesses.

Reference: Html5 Local Storage Across Different Browsers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.