Skip to content
Snippets Groups Projects
Commit a1ad902f authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

Set session age to 2 hours and enforce session cookie security

parent fa74d908
No related branches found
No related tags found
No related merge requests found
...@@ -67,7 +67,8 @@ ALLOWED_HOSTS = ['localhost', '127.0.0.1', SERVER_FQDN, ...@@ -67,7 +67,8 @@ ALLOWED_HOSTS = ['localhost', '127.0.0.1', SERVER_FQDN,
'{0}.ligo.org'.format(SERVER_HOSTNAME)] '{0}.ligo.org'.format(SERVER_HOSTNAME)]
# Sessions settings ----------------------------------------------------------- # Sessions settings -----------------------------------------------------------
SESSION_COOKIE_AGE = 3600 SESSION_COOKIE_AGE = 3600*2
SESSION_COOKIE_SECURE = True
SESSION_ENGINE = 'user_sessions.backends.db' SESSION_ENGINE = 'user_sessions.backends.db'
# Login/logout settings ------------------------------------------------------- # Login/logout settings -------------------------------------------------------
......
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