Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #19254 -- Bug in SESSION_FILE_PATH handling.

Thanks simonb for the report.

Refs #18194.
  • Loading branch information...
commit 11fd00c46e2826ce5852e096487762a96909b717 1 parent d3fd8a1
@aaugustin aaugustin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/sessions/backends/file.py
View
2  django/contrib/sessions/backends/file.py
@@ -176,7 +176,7 @@ def clean(self):
@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):
Please sign in to comment.
Something went wrong with that request. Please try again.