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 deletion #453

Closed
rikkimax opened this Issue Jan 1, 2014 · 1 comment

Comments

Projects
None yet
2 participants
@rikkimax

rikkimax commented Jan 1, 2014

When a cookie is set to be deleted it does not.
In browsers:
Chrome 31 and IE 11.

IE does not recognise max-age (or at least < 9 from what I have read).
A max age of 0 is also not recognised to be deleted immediately.
Setting max age and expires to -1 does however delete in both browsers from testing.

s-ludwig added a commit that referenced this issue Jan 10, 2014

@s-ludwig

This comment has been minimized.

Show comment
Hide comment
@s-ludwig

s-ludwig Jan 10, 2014

Member

What is done now is max-age=0, which is supposed to be the standard way of clearing a cookie, and expires=Thu, 01 Jan 1970 00:00:00 GMT which should work on older browsers, which don't support that. max-age=-1 on the other hand is supposed to make the cookie a session cookie, so I didn't use that, but hopefully expires will to the job anyway..

Member

s-ludwig commented Jan 10, 2014

What is done now is max-age=0, which is supposed to be the standard way of clearing a cookie, and expires=Thu, 01 Jan 1970 00:00:00 GMT which should work on older browsers, which don't support that. max-age=-1 on the other hand is supposed to make the cookie a session cookie, so I didn't use that, but hopefully expires will to the job anyway..

@s-ludwig s-ludwig closed this Feb 11, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment