↧
Answer by sp1rs for Why deleting session record in django server cache...
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
View ArticleWhy deleting session record in django server cache doesn't make me logout?
I store session in redis cache SESSION_ENGINE = "django.contrib.sessions.backends.cache" SESSION_CACHE_ALIAS = "default" I delete the record from cache, the key is...
View Article