Is this a bug in Django or what? Logging out of the Django Authentication system...will remove all sessiosn?
I'm using sessions across my application. And using logins.
When I do a simple:
#log out the user.
logout(request)
...t开发者_运维问答he request.sessions get erased.
What is this??!
If by request.sessions
you mean request.session
, then it's a documented feature:
http://docs.djangoproject.com/en/dev/topics/auth/#django.contrib.auth.logout
I believe the correct syntax is:
logout(request.user)
精彩评论