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

Tidy up flash message cookies. #137

Merged
merged 3 commits into from
Jul 20, 2021
Merged

Tidy up flash message cookies. #137

merged 3 commits into from
Jul 20, 2021

Conversation

jsthomas
Copy link
Contributor

This change addresses #134. In the first flash message implementation, the middleware would create a cookie regardless of whether any messages were actually created. A better approach is to only create a cookie when there is a flash message to display on the next request and to expire an existing cookie if there are no new messages to show.

@aantron aantron merged commit 47f4ed5 into aantron:master Jul 20, 2021
@aantron
Copy link
Owner

aantron commented Jul 20, 2021

Thank you!

@jsthomas jsthomas deleted the issue-134 branch July 22, 2021 15:16
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