Fixed CSRF errors for stale sessions by increasing the session expiration time for desktop mode. Fixes #6369

This commit is contained in:
Rahul Shirsat
2021-07-15 17:49:42 +05:30
committed by Akshay Joshi
parent 9e8af67202
commit b0727cc532
3 changed files with 54 additions and 0 deletions

View File

@@ -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