Skip to content
This repository has been archived by the owner on Sep 18, 2018. It is now read-only.

Commit

Permalink
Enabled configuration value for setting SESSION_COOKIE_AGE in seconds.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rasmus Edgar Jørgensen committed May 20, 2015
1 parent 9bca745 commit 44d29f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions conf/defaults.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ max_attachment_size = 2097152
# not require a login.
loginless_ssh_fingerprints = false

# Set cookietimeout in seconds.
session_age = 1800

[filepaths]
# The on disk location of media files (does nothing right now).
media =
Expand Down
1 change: 1 addition & 0 deletions ratticweb/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ def confgetbool(section, var, default):
# django-user-sessions
SESSION_ENGINE = 'user_sessions.backends.db'
SESSION_EXPIRE_AT_BROWSER_CLOSE = True
SESSION_COOKIE_AGE = int(config.get('ratticweb', 'session_age'))

# Icon configuration
CRED_ICON_JSON = 'db/icons.json'
Expand Down

0 comments on commit 44d29f2

Please sign in to comment.