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

Cookie fallback doesn't work with objects or arrays #121

Closed
apoh opened this issue Aug 20, 2014 · 5 comments
Closed

Cookie fallback doesn't work with objects or arrays #121

apoh opened this issue Aug 20, 2014 · 5 comments
Labels

Comments

@apoh
Copy link

apoh commented Aug 20, 2014

When the browser doesn't support localStorage an the module falls back to cookie-storage it doesn't serialize objects or array to string it just writes "object".

@apoh apoh changed the title Cookie fallback doesn't not work with objects or arrays Cookie fallback doesn't work with objects or arrays Aug 20, 2014
@Soviut
Copy link

Soviut commented Sep 2, 2014

I'm having an issues because iOS 7.0.2 has a local storage issue so angular-local-storage falls back to cookies. However the cookie just reads [object object] due to naive serialization.

@provegard
Copy link

+1
I'm seeing this too on IE10 when running from the file:/// protocol, i.e. in my test suite.

@glade-at-gigwell
Copy link

Can I disable the cookie fallback? Its very annoying to have the user's broken array/objects sent to the server with every request.

@a8m
Copy link
Collaborator

a8m commented Oct 6, 2014

See: commit 8a4bdc2 - test spec

@ealves-pt ealves-pt added the bug label Feb 17, 2016
@ealves-pt
Copy link
Contributor

Fixed

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

No branches or pull requests

6 participants