Skip to content

Commit 536e61b

Browse files
committed
Set SESSION_EXPIRE_AT_BROWSER_CLOSE to True
- This MR adds the configuration to set SESSION_EXPIRE_AT_BROWSER_CLOSE to True, which ensures that user sessions expire when the browser is closed.
1 parent 6cdfeed commit 536e61b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apidemo/apidemo/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,4 @@
143143

144144
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
145145
SESSION_COOKIE_SECURE = True
146+
SESSION_EXPIRE_AT_BROWSER_CLOSE = True

0 commit comments

Comments
 (0)