1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #28763 -- Allowed overriding the session cookie age with SessionStore.get_session_cookie_age().

This commit is contained in:
Hasan Ramezani
2019-05-19 22:15:45 +02:00
committed by Mariusz Felisiak
parent df28ebd6c8
commit 9d6f981a66
7 changed files with 32 additions and 6 deletions

View File

@@ -38,3 +38,6 @@ class SessionStore(DBStore):
obj.account_id = account_id
return obj
def get_session_cookie_age(self):
return 60 * 60 * 24 # One day.