@@ -210,6 +210,9 @@
# The cookie containing the users' session ID will use the HTTP only flag.
## http_only=false
+ # Use session-length cookies. Logs out the user when she closes the browser window.
+ ## expire_at_browser_close=false
+
# Configuration options for connecting to an external SMTP server
# ------------------------------------------------------------------------
@@ -216,6 +216,10 @@
[[smtp]]
@@ -259,6 +259,12 @@ SESSION = ConfigSection(
help=_("The cookie containing the users' session ID will use the HTTP only flag."),
type=coerce_bool,
default=False
+ ),
+ EXPIRE_AT_BROWSER_CLOSE=Config(
+ key='expire_at_browser_close',
+ help=_("Use session-length cookies. Logs out the user when she closes the browser window."),
+ type=coerce_bool,
+ default=False
)
@@ -276,6 +276,7 @@ DATABASES = {
# Configure sessions
SESSION_COOKIE_AGE = desktop.conf.SESSION.TTL.get()
SESSION_COOKIE_SECURE = desktop.conf.SESSION.SECURE.get()
+SESSION_EXPIRE_AT_BROWSER_CLOSE = desktop.conf.SESSION.EXPIRE_AT_BROWSER_CLOSE.get()
# HTTP only
SESSION_COOKIE_HTTPONLY = desktop.conf.SESSION.HTTP_ONLY.get()