diff options
Diffstat (limited to 'accounts/utils/sessions.py')
-rw-r--r-- | accounts/utils/sessions.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/accounts/utils/sessions.py b/accounts/utils/sessions.py index dd4e4bb..8dc8cf3 100644 --- a/accounts/utils/sessions.py +++ b/accounts/utils/sessions.py @@ -61,9 +61,7 @@ class EncryptedSessionInterface(SecureCookieSessionInterface): session = self.session_class() if session is not None: - if app.config.get('PERMANENT_SESSION_LIFETIME') is not None: - session.permanent = True - else: - session.permanent = False + session.permanent = \ + app.config.get('PERMANENT_SESSION_LIFETIME') is not None return session |