summaryrefslogtreecommitdiffstats
path: root/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'app.py')
-rw-r--r--app.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/app.py b/app.py
index 56731a4..eae781f 100644
--- a/app.py
+++ b/app.py
@@ -18,6 +18,12 @@ if 'SPLINE_ACCOUNT_WEB_SETTINGS' in os.environ:
app.all_services = account.SERVICES #TODO: take that from our json file or so
+@app.before_request
+def session_permanent():
+ if app.config.get('PERMANENT_SESSION_LIFETIME'):
+ session.permanent = True
+ else:
+ session.permanent = False
@app.before_request
def ldap_connect():