feat: add sliding session timeout with idle and absolute caps
This commit is contained in:
@@ -48,6 +48,10 @@ class BaseConfig:
|
||||
seconds=int(os.getenv("MAX_SESSION_DURATION", "86400"))
|
||||
)
|
||||
|
||||
# Session timeout policy (seconds)
|
||||
SESSION_IDLE_TIMEOUT = int(os.getenv("SESSION_IDLE_TIMEOUT", "900"))
|
||||
SESSION_ABSOLUTE_TIMEOUT = int(os.getenv("SESSION_ABSOLUTE_TIMEOUT", "28800"))
|
||||
|
||||
# CORS
|
||||
CORS_ORIGINS = os.getenv(
|
||||
"CORS_ORIGINS",
|
||||
|
||||
Reference in New Issue
Block a user