From e5ee28c378d4165463d6a4fee20be0c7135b0cce Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Tue, 20 Dec 2016 05:55:18 -0500 Subject: [PATCH] Relax session expiry times. --- calefaction/database.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calefaction/database.py b/calefaction/database.py index 3d8dbc2..b5e9e56 100644 --- a/calefaction/database.py +++ b/calefaction/database.py @@ -11,8 +11,8 @@ __all__ = ["Database"] class Database: """Database manager for low-level authentication actions.""" - MAX_SESSION_STALENESS = 30 * 60 # 30 minutes - MAX_SESSION_AGE = 6 * 60 * 60 # 6 hours + MAX_SESSION_STALENESS = 2 * 60 * 60 # 2 hours + MAX_SESSION_AGE = 24 * 60 * 60 # 24 hours SESSION_GRACE = 60 * 60 # 1 hour path = None