Skip to content

fix: clear session cookie with configured path#344

Merged
mcollina merged 1 commit into
fastify:mainfrom
0XFF-96:fix-cookie-clear-path
Jul 13, 2026
Merged

fix: clear session cookie with configured path#344
mcollina merged 1 commit into
fastify:mainfrom
0XFF-96:fix-cookie-clear-path

Conversation

@0XFF-96

@0XFF-96 0XFF-96 commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Description in short

Issue Link: #345

Fixes session cookie cleanup when a custom cookie path is configured.

clearCookie now includes the configured path, ensuring the browser deletes the same cookie identity that was originally set.

reference

Checklist

Signed-off-by: Jimmy li <jli449668@gmail.com>

@mcollina mcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@mcollina mcollina merged commit c6ff3ad into fastify:main Jul 13, 2026
14 checks passed
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

Successfully merging this pull request may close these issues.

2 participants