A developer faced issues with deleting cookies in production using the Astro framework. The post explains that cookies are actually modified instead of being deleted, and how servers send instructions to browsers to modify cookies. The issue was due to incorrect cookie options in the code, which were resolved by checking the

4m read timeFrom dev.to
Post cover image
Table of contents
Cookies are not deleted: they're modifiedCookies are modified via HTTP response headersWhy weren't my cookies being removed in production?Naming is hard
4 Comments

Sort: