Aware of issues like:
(from: http://diveintohtml5.info/storage.html)
I decided to use localstorage instead of cookies.
QUESTION: Can I limit localstorage context to certain path like with cookies?
As mentioned in the comments already, webstorages (localStorage
, sessionStorage
) are scoped per origin.
User agents must have a set of local storage areas, one for each origin.
Source: http://www.w3.org/TR/webstorage/#the-localstorage-attribute
Let's just quote the w3.org wiki page on the same origin policy:
An origin is defined by the scheme, host, and port of a URL.
Source: http://www.w3.org/Security/wiki/Same_Origin_Policy
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With