1 2 3 4 | class SetTestCookieMiddleware(object):
def process_request(self, request):
if not request.user.is_authenticated():
request.session.set_test_cookie()
|
More like this
- Login message middleware by nipuL 5 years, 2 months ago
- OracleAuthBackend by nosrednakram 3 years, 10 months ago
- HTTPS redirections middleware with updated URL template tag by xlq 8 months ago
- Auth decorators with 403 by Magus 6 years ago
- Cookieless Session Middleware by juliocarlos 4 years, 6 months ago
Comments