diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-11-06 10:19:14 +0100 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-11-06 10:21:30 +0100 |
| commit | 93e0ec553dae73a2a86cb23b058414d8f9ae3bd6 (patch) | |
| tree | 4908bbfa39671e64497b0ddc26edde475ce58ca5 | |
| parent | f7d87b30fb3636f0964880a6dd8a066db54ce3c1 (diff) | |
[1.5.x] Fixed #19254 -- Bug in SESSION_FILE_PATH handling.
Thanks simonb for the report.
Refs #18194.
Backport of 11fd00c from master.
| -rw-r--r-- | django/contrib/sessions/backends/file.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/sessions/backends/file.py b/django/contrib/sessions/backends/file.py index f3a71f8271..401c90cf74 100644 --- a/django/contrib/sessions/backends/file.py +++ b/django/contrib/sessions/backends/file.py @@ -176,7 +176,7 @@ class SessionStore(SessionBase): @classmethod def clear_expired(cls): - storage_path = getattr(settings, "SESSION_FILE_PATH", tempfile.gettempdir()) + storage_path = cls._get_storage_path() file_prefix = settings.SESSION_COOKIE_NAME for session_file in os.listdir(storage_path): |
