$ 0 0 As of Django 1.8 or newer, any call to flush() will log out the user. From the docs: If you check django logout functionality, it uses flush() to logout user instead of deleting it. Here is the link