There was an error while loading. Please reload this page.
1 parent d3fd8a1 commit 11fd00cCopy full SHA for 11fd00c
django/contrib/sessions/backends/file.py
@@ -176,7 +176,7 @@ def clean(self):
176
177
@classmethod
178
def clear_expired(cls):
179
- storage_path = getattr(settings, "SESSION_FILE_PATH", tempfile.gettempdir())
+ storage_path = cls._get_storage_path()
180
file_prefix = settings.SESSION_COOKIE_NAME
181
182
for session_file in os.listdir(storage_path):
0 commit comments