You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These set cookies correctly, the only strange observation I can see is that in production case, cookies domain is set to .my.domain.io (has additional dot in front)
I then try to remove the cookie like so: cookie.remove('sessionToken') which works as expected on localhost, but doesn't get rid of the cookie on production.
The text was updated successfully, but these errors were encountered:
xzilja
changed the title
Unable to remove cookie with domain and secure
Unable to remove cookie with domain
Jul 5, 2016
Having somewhat same problem.
When login i do Cookie.save('my-cookie-name', {name: 'abx', email: 'abc@xyz.com'});
When logout i do Cookie.remove('my-cookie-name')
(My app runs on localhost)
But doesnt work.
I set my cookies in 2 ways, note
cookie
comes fromvar cookie = require('react-cookie')
Cookie for localhost:
Cookie for production
These set cookies correctly, the only strange observation I can see is that in production case, cookies domain is set to
.my.domain.io
(has additional dot in front)I then try to remove the cookie like so:
cookie.remove('sessionToken')
which works as expected on localhost, but doesn't get rid of the cookie on production.The text was updated successfully, but these errors were encountered: