Skip to content

Commit

Permalink
add SESSION_COOKIE_AGE
Browse files Browse the repository at this point in the history
  • Loading branch information
jtimpe committed Apr 9, 2024
1 parent f32ca4e commit bd8cefd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tdrs-backend/tdpservice/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ class Common(Configuration):
SESSION_COOKIE_HTTPONLY = True
SESSION_TIMEOUT = 30
SESSION_EXPIRE_AT_BROWSER_CLOSE = True
SESSION_COOKIE_AGE = 30 * 60 # 30 minutes
# The CSRF token Cookie holds no security benefits when confined to HttpOnly.
# Setting this to false to allow the frontend to include it in the header
# of API POST calls to prevent false negative authorization errors.
Expand Down

0 comments on commit bd8cefd

Please sign in to comment.