From 444f0226e6f94fb2decafb239ad55072e11004a9 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Tue, 24 Oct 2023 02:03:11 +0300 Subject: [PATCH] Make sessions last a year --- cista/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cista/session.py b/cista/session.py index b718290..3a97eee 100755 --- a/cista/session.py +++ b/cista/session.py @@ -5,7 +5,7 @@ import jwt from cista.config import derived_secret session_secret = lambda: derived_secret("session") -max_age = 60 # Seconds since last login +max_age = 365 * 86400 # Seconds since last login def get(request): try: