can i get the current session or cookie inside a middleware?
I tried but I got:
'WSGIRequest' 开发者_运维问答object has no attribute 'session'
This will work in any middleware that comes after django.contrib.sessions.middleware.SessionMiddleware
in settings.py.
精彩评论