diff --git a/lms/envs/production.py b/lms/envs/production.py index 3ea1c952e47..c22b358fadc 100644 --- a/lms/envs/production.py +++ b/lms/envs/production.py @@ -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'