Skip to content

Commit

Permalink
Merge pull request tildaslash#361 from refj/master
Browse files Browse the repository at this point in the history
Enable SESSION_COOKIE_AGE config variable
  • Loading branch information
Zemmiph0bia committed Aug 22, 2015
2 parents 9bca745 + 471c72c commit 6525949
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 session cookie age (timeout) in seconds.
session_cookie_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_cookie_age'))

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

0 comments on commit 6525949

Please sign in to comment.