Skip to content

Commit

Permalink
feat: Make SESSION_COOKIE_AGE explicit
Browse files Browse the repository at this point in the history
Making SESSION_COOKIE_AGE explicit to make it more clear
that we have a session timeout, and how long it is.
  • Loading branch information
robrap authored Jan 16, 2025
1 parent 1593923 commit ab80279
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lms/envs/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ def get_env_setting(setting):
EMAIL_HOST = 'localhost'
EMAIL_PORT = 25
EMAIL_USE_TLS = False
# Makes the session timeout explicit, even though 1209600 (2 weeks, in
# seconds) is Django's default.
SESSION_COOKIE_AGE: 1209600
SESSION_COOKIE_DOMAIN = None
SESSION_COOKIE_HTTPONLY = True
AWS_SES_REGION_NAME = 'us-east-1'
Expand Down

0 comments on commit ab80279

Please sign in to comment.