mirror of
https://github.com/django/django.git
synced 2025-01-27 02:29:55 +00:00
393c0e2422
Previously, when logging out, the existing session was overwritten by a new sessionid instead of deleting the session altogether. This behavior added overhead by creating a new session record in whichever backend was in use: db, cache, etc. This extra session is unnecessary at the time since no session data is meant to be preserved when explicitly logging out.