Answer the question
In order to leave comments, you need to log in
One localStorage for all subdomains. You can't, but maybe you can?
There is a multilingual project. Each language corresponds to a subdomain, and there are also special subdomains for static and special versions (like on Wikipedia):
en.example.com<br/>
ru.example.com<br/>
...<br/>
static.example.com<br/>
m.example.com<br/>
fb.example.com<br/>
vk.example.com<br/>
...<br/>
Answer the question
In order to leave comments, you need to log in
You can use 1 perverse way.
Use postMssage, which will broadcast localStorage requests on a special page, ala localStorage.example.com :)
By the way, you can play around with trying to reach directly to the ifram's localStorage, because the 2nd level domain of the pages will be the same. I don't remember, just whether the security policies allow it.
I can suggest such a crutch:
make an invisible iframe, load a page into it from some common domain, for example, localStorage.yoursite.com, implement functions for working with storage in scripts on this page
, organize interaction with this iframe based on a hash hack (on the so-called XHRIFrameProxy is made on its basis )
Try using the script from this article: Evercookies are the most persistent cookies
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question