jStorage
jStorage copied to clipboard
What is the scope of the data?
Forgive me if I have overlooked this somewhere, but what is the scope of the stored data? Can I set data in one page (example.com/foo) and retrieve it in another page on the same domain (example.com/bar)?
To be clear, I definitely don't want this - I need to know if this is something I deliberately need to avoid by namespacing my keys in some way. I want to store separate values for the key baz
on the two pages example.com/foo and example.com/bar.
It's a straightforward Key-value store IIRC. There is no page context.
Does that mean that the keys are accessible even across domains? E.g. that example1.com can set the key baz
and example2.com can read it?
No
Then does it mean that key baz
stored on example.com/foo is visible from example.com/bar? You're sure?
Yes, you can read key baz
from example.com/foo and example.com/bar