Sep 15 - Fixed login session when check 'Remember for 30 days' box

This commit is contained in:
2026-09-15 12:11:32 -04:00
parent 23bd3a897b
commit 4786f34f4d
4 changed files with 47 additions and 12 deletions
+5 -1
View File
@@ -46,7 +46,11 @@ class Config:
# ------------------------------------------------------------------ #
# Session / cookies
# ------------------------------------------------------------------ #
PERMANENT_SESSION_LIFETIME = timedelta(days=30) # Reduced from 30 days — payroll data sensitivity
# Remember Me lifetime, and the maximum age Flask accepts for ANY session
# cookie. Logins without Remember Me end after 10 hours in app.py
# (adjust_session_lifetime) — do not lower this to get that, or Remember Me
# cookies stop loading.
PERMANENT_SESSION_LIFETIME = timedelta(days=30)
SESSION_COOKIE_SECURE = (
os.environ.get('SESSION_COOKIE_SECURE', 'false').lower() == 'true'
)