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

Remove cookie rotate code #2694

Merged
merged 1 commit into from
Feb 12, 2024
Merged

Remove cookie rotate code #2694

merged 1 commit into from
Feb 12, 2024

Conversation

chrislo
Copy link
Contributor

@chrislo chrislo commented Feb 7, 2024

We introduced this cookie rotation code in e711982 as part of the upgrade to Rails 7. Since our session cookies do not have a Max-Age or Expires attribute they are treated by the browsers as Session cookies and expire when the browser window is closed. I think it's safe to assume that all cookies issued under the old scheme (sometime before approximately April 13th 2022 when e711982 was made) have now been rotated, so this code can be removed.

@chrislo chrislo marked this pull request as draft February 7, 2024 11:22
@chrislo chrislo marked this pull request as ready for review February 7, 2024 12:34
Copy link
Contributor

@chrisroos chrisroos left a comment

Choose a reason for hiding this comment

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

Looks good to me, @chrislo

We introduced this cookie rotation code in e711982 as part of the
upgrade to Rails 7. Since our session cookies do not have a `Max-Age`
or `Expires` attribute they are treated by the browsers as Session
cookies and expire when the browser window is closed. I think it's
safe to assume that all cookies issued under the old scheme (sometime
before approximately April 13th 2022 when e711982 was made) have
now been rotated, so this code can be removed.
@chrislo chrislo merged commit 07de6b0 into main Feb 12, 2024
16 checks passed
@chrislo chrislo deleted the remove-cookie-rotator branch February 12, 2024 08:44
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