Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[1.5.x] Fixed #19254 -- Bug in SESSION_FILE_PATH handling.

Thanks simonb for the report.

Refs #18194.

Backport of 11fd00c from master.
  • Loading branch information...
commit 93e0ec553dae73a2a86cb23b058414d8f9ae3bd6 1 parent f7d87b3
Aymeric Augustin aaugustin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/sessions/backends/file.py
2  django/contrib/sessions/backends/file.py
View
@@ -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.