summaryrefslogtreecommitdiff
path: root/django/contrib/sessions/backends/file.py
diff options
context:
space:
mode:
authorHasan Ramezani <hasan.r67@gmail.com>2019-05-19 22:15:45 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-05-21 08:50:09 +0200
commit9d6f981a66bd2c4188c4a3e08e4f36fc9c4882ef (patch)
tree9b061285be81426ec542e7e67927a22e8f5b575b /django/contrib/sessions/backends/file.py
parentdf28ebd6c89d68e781020a6a4e8405c0154e8e40 (diff)
Fixed #28763 -- Allowed overriding the session cookie age with SessionStore.get_session_cookie_age().
Diffstat (limited to 'django/contrib/sessions/backends/file.py')
-rw-r--r--django/contrib/sessions/backends/file.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/sessions/backends/file.py b/django/contrib/sessions/backends/file.py
index e75195f222..cc5f93a8ff 100644
--- a/django/contrib/sessions/backends/file.py
+++ b/django/contrib/sessions/backends/file.py
@@ -69,7 +69,7 @@ class SessionStore(SessionBase):
Return the expiry time of the file storing the session's content.
"""
return session_data.get('_session_expiry') or (
- self._last_modification() + datetime.timedelta(seconds=settings.SESSION_COOKIE_AGE)
+ self._last_modification() + datetime.timedelta(seconds=self.get_session_cookie_age())
)
def load(self):