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

Unable to set a cookie. #316

Open
zendevil opened this issue Feb 21, 2020 · 0 comments
Open

Unable to set a cookie. #316

zendevil opened this issue Feb 21, 2020 · 0 comments

Comments

@zendevil
Copy link

zendevil commented Feb 21, 2020

I have a "some-id" cookie already set in the browser. To unset it, I go to a resource whose handle-ok looks like the following:

:handle-ok (fn [ctx]
               (ring.util.response/set-cookie
                {:status 200}
                "some-id"
                nil
                {:path "/" :max-age 1}))

This does return a status 200 with the cookie unset in the browser text, but in the browser resources section, the cookie is not unset. Why is this the case?

@zendevil zendevil changed the title Unable to unset a cookie. Unable to set a cookie. Feb 21, 2020
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

1 participant