Skip to content

Commit 11fd00c

Browse files
committed
Fixed django#19254 -- Bug in SESSION_FILE_PATH handling.
Thanks simonb for the report. Refs django#18194.
1 parent d3fd8a1 commit 11fd00c

File tree

1 file changed

+1
-1
lines changed
  • django/contrib/sessions/backends

1 file changed

+1
-1
lines changed

django/contrib/sessions/backends/file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def clean(self):
176176

177177
@classmethod
178178
def clear_expired(cls):
179-
storage_path = getattr(settings, "SESSION_FILE_PATH", tempfile.gettempdir())
179+
storage_path = cls._get_storage_path()
180180
file_prefix = settings.SESSION_COOKIE_NAME
181181

182182
for session_file in os.listdir(storage_path):

0 commit comments

Comments
 (0)