Fixed #19254 -- Bug in SESSION_FILE_PATH handling.

Thanks simonb for the report.

Refs #18194.
This commit is contained in:
Aymeric Augustin 2012-11-06 10:19:14 +01:00
parent d3fd8a1512
commit 11fd00c46e
1 changed files with 1 additions and 1 deletions

View File

@ -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):