I'm using sessions across my application. And using logins.
When I do a simple:
#log out the user.
logout(request)
...the request.sessions get erased.
What is this??!
I'm using sessions across my application. And using logins.
When I do a simple:
#log out the user.
logout(request)
...the 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