Skip to content
Snippets Groups Projects
Unverified Commit 57574d4b authored by Saurabh Kumar's avatar Saurabh Kumar Committed by GitHub
Browse files

Add SESSION_COOKIE_AGE Django setting to base.py setting file (#3552)

Fixes #3529
parent 85e609f4
No related branches found
No related tags found
2 merge requests!19Merge 4.6.1 into lfc-main,!18Fix application form submit button remaining disabled (#3483)
......@@ -53,6 +53,13 @@ The corrosponding locale dir is named: en, en_GB, en_US
PASSWORD_PAGE_TIMEOUT = env.int('PASSWORD_PAGE_TIMEOUT', 120)
### The age of session cookies, in seconds.
This determines the length of time for which the user will remain logged in. The default value is 2 weeks.
SESSION_COOKIE_AGE = env.int('SESSION_COOKIE_AGE', 60 * 60 * 24 * 7 * 2)
## Hypha custom settings
......
......@@ -374,6 +374,11 @@ if env.bool('BASIC_AUTH_ENABLED', False):
BASIC_AUTH_WHITELISTED_HTTP_HOSTS = env.list('BASIC_AUTH_WHITELISTED_HTTP_HOSTS', [])
BASIC_AUTH_WHITELISTED_IP_NETWORKS = env.list('BASIC_AUTH_WHITELISTED_IP_NETWORKS', [])
# Sessions
# https://docs.djangoproject.com/en/stable/ref/settings/#sessions
# The age of session cookies, in seconds.
SESSION_COOKIE_AGE = env.int('SESSION_COOKIE_AGE', 60 * 60 * 24 * 7 * 2) # 2 weeks
# This is used by Wagtail's email notifications for constructing absolute URLs.
PRIMARY_HOST = env.str('PRIMARY_HOST', None)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment