Skip to content
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.

ResponseCookies.Delete does not use the same default path as ResponseCookies.Append #437

Closed
tuespetre opened this issue Oct 13, 2015 · 0 comments
Assignees
Milestone

Comments

@tuespetre
Copy link
Contributor

ResponseCookies.Append and the CookieOptions class both use a default path of "/" but the single-parameter version of ResponseCookies.Delete does not.

This can be a confusing road bump when you have set a cookie with a simple call like Response.Cookies.Append("EditSuccess", string.Empty) and then later try to delete it with Response.Cookies.Delete("EditSuccess"), because some browsers (namely Chrome) will not remove the cookie since it does not have a matching path specified.

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

No branches or pull requests

5 participants