mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
[1.5.x] Fixed #19254 -- Bug in SESSION_FILE_PATH handling.
Thanks simonb for the report. Refs #18194. Backport of 11fd00c from master.
This commit is contained in:
parent
f7d87b30fb
commit
93e0ec553d
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user