Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.
This repository was 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

Description

@tuespetre

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions