def logout(request):
  from kay.sessions import flush_session
  flush_session(request)
  if hasattr(request, 'user'):
    from kay.auth.models import AnonymousUser
    request.user = AnonymousUser()
Removes the authenticated user's ID from the request and flushes their
dataset/ETHPy150Open IanLewis/kay/kay/auth/__init__.py/logout