mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed CSRF errors for stale sessions by increasing the session expiration time for desktop mode. Fixes #6369
This commit is contained in:
committed by
Akshay Joshi
parent
9e8af67202
commit
b0727cc532
@@ -513,6 +513,10 @@ SESSION_SKIP_PATHS = [
|
||||
# expire after the specified number of *days*.
|
||||
SESSION_EXPIRATION_TIME = 1
|
||||
|
||||
# Make SESSION_EXPIRATION_TIME to 1 week in DESKTOP mode
|
||||
if not SERVER_MODE:
|
||||
SESSION_EXPIRATION_TIME = 7
|
||||
|
||||
# CHECK_SESSION_FILES_INTERVAL is interval in Hours. Application will check
|
||||
# the session files for cleanup after specified number of *hours*.
|
||||
CHECK_SESSION_FILES_INTERVAL = 24
|
||||
|
||||
Reference in New Issue
Block a user