Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Clearing a cookie when logout() on subdomain #177

Closed
pashinin opened this issue Feb 6, 2024 · 0 comments
Closed

Clearing a cookie when logout() on subdomain #177

pashinin opened this issue Feb 6, 2024 · 0 comments

Comments

@pashinin
Copy link

pashinin commented Feb 6, 2024

There is a check in integration tests that a cookie is destroyed on logout. And it is working until you use a subdomain.

For example:

auth.example.localhost - sets a cookie "id" for a domain ".example.localhost"

Then on logout this cookie is not cleared because there is no "Domain" param in a response.

Set-Cookie: id=; Max-Age=0; Expires=Mon, 06 Feb 2023 09:20:24 GMT

So a cookie is not removed from browser causing warnings:

tower_sessions_core::session: possibly suspicious activity: record not found in store
Repository owner locked and limited conversation to collaborators Feb 6, 2024
@maxcountryman maxcountryman converted this issue into discussion #178 Feb 6, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant