Sep 15 - Fixed login session when check 'Remember for 30 days' box
This commit is contained in:
@@ -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'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user