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

chore: change default session cookie max age to 1 day #2086

Merged
merged 1 commit into from
Dec 6, 2022

Conversation

halfwhole
Copy link
Collaborator

Problem

It's really tiring for devs to have to log in again every 30 mins

Solution

Change the default COOKIE_MAX_AGE from 1800000 (30 mins) to 86400000 (1 day) in docker-compose.yml.

  • COOKIE_MAX_AGE is already set to 86400000 on gov/edu/health prod, so there will be no change at all to production
  • I could not find any history as to why COOKIE_MAX_AGE was set at 30 mins 3 years ago, but since prod already overrides this to 1 day anyway, I figure that bumping everything to 1 day by default is fine

Copy link
Contributor

@gweiying gweiying left a comment

Choose a reason for hiding this comment

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

GREAT! hahaha I always changed it locally but this is much better

@gweiying gweiying merged commit 469ad37 into develop Dec 6, 2022
@gweiying gweiying deleted the chore/change-cookie-max-age branch December 6, 2022 00:34
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