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:
committed by
Mariusz Felisiak
parent
df28ebd6c8
commit
9d6f981a66
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user