-
Notifications
You must be signed in to change notification settings - Fork 46
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
clear method doesnt work #152
Comments
Any Error? Is the cookie just not cleared? Does it have a path, domain, expiration etc.? |
I can confirm that this is a bug, although it's not an ember-cookie bug. It's a Firefox bug (see: https://bugzilla.mozilla.org/show_bug.cgi?id=691973 ), and it's only related to cookies that are already expired. Chrome isn't affected, so ember-cookies works flawlessly there. Steps to reproduce:
Here's a simple HTML (must be accessed through a local web server, or enable cookies with local files) that can help reproduce the problem (keep the dev console open in the Local Storage/Cookies section):
|
There is an easy workaround: Just before deleting the cookie, set it again to any value (an empty string should be fine). Firefox will of course "revive" the cookie, and clearing it will work at that point. For example:
|
Thanks for the details @eighthjouster! I just confirmed the respective test breaks in Firefox. |
This issue is happening for expiry time, which is not getting set properly. Facing this issue in chrome also.
|
@trdp30 how is that cookie written in the first place? |
I'm seeing issue with this in Chrome now. |
i try to clear user cookie in my ember app. and the cookie still there...
its work in chrome. but not in firefox..
whats wrong..
The text was updated successfully, but these errors were encountered: