Commit 450993d0 authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

log cookie deletion

parent f2706bbc
......@@ -411,9 +411,11 @@ def logout(request, template='registration/logged_out.html', extra_context={}):
Wraps `django.contrib.auth.logout` and delete the cookie.
msg = 'Cookie deleted for %s' % (
response = HttpResponse()
response.delete_cookie(COOKIE_NAME, path='/', domain=COOKIE_DOMAIN)
logger._log(LOGGING_LEVEL, msg, [])
next = request.GET.get('next')
if next:
response['Location'] = next
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment