Make sessions last a year

This commit is contained in:
Leo Vasanko 2023-10-24 02:03:11 +03:00 committed by Leo Vasanko
parent 9428cc2d9c
commit 444f0226e6

View File

@ -5,7 +5,7 @@ import jwt
from cista.config import derived_secret from cista.config import derived_secret
session_secret = lambda: derived_secret("session") session_secret = lambda: derived_secret("session")
max_age = 60 # Seconds since last login max_age = 365 * 86400 # Seconds since last login
def get(request): def get(request):
try: try: