Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the scope of the data? #98

Open
cmeeren opened this issue Apr 4, 2016 · 5 comments
Open

What is the scope of the data? #98

cmeeren opened this issue Apr 4, 2016 · 5 comments

Comments

@cmeeren
Copy link

cmeeren commented Apr 4, 2016

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.

@mezza
Copy link

mezza commented Apr 4, 2016

It's a straightforward Key-value store IIRC. There is no page context.

@cmeeren
Copy link
Author

cmeeren commented Apr 4, 2016

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?

@mezza
Copy link

mezza commented Apr 4, 2016

No

@cmeeren
Copy link
Author

cmeeren commented Apr 4, 2016

Then does it mean that key baz stored on example.com/foo is visible from example.com/bar? You're sure?

@mezza
Copy link

mezza commented Apr 7, 2016

Yes, you can read key baz from example.com/foo and example.com/bar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants