Skip to content
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

Clear session storage after removing cookie #17

Merged
merged 3 commits into from
Aug 7, 2022

Conversation

alex-oleshkevich
Copy link
Owner

Cleanup storage after cookie removal.

Resolves #16

@alex-oleshkevich
Copy link
Owner Author

@RamiAwar you may want to review it.

Copy link
Contributor

@RamiAwar RamiAwar left a comment

Choose a reason for hiding this comment

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

lgtm

@@ -80,6 +80,7 @@ async def send_wrapper(message: Message) -> None:
self.security_flags,
)
headers.append("Set-Cookie", header_value)
await self.backend.remove(scope['session'].session_id)
Copy link
Contributor

Choose a reason for hiding this comment

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

I just noticed that this was missing :D Was about to make this change

@RamiAwar
Copy link
Contributor

RamiAwar commented Aug 7, 2022

It's worth making a minor release after those changes.

@alex-oleshkevich alex-oleshkevich merged commit a99a63d into master Aug 7, 2022
@alex-oleshkevich alex-oleshkevich deleted the clear-storage branch August 7, 2022 21:23
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.

Set frontend cookies to expire from backend
2 participants