Skip to content

Instantly share code, notes, and snippets.

@marcofalcioni
Created August 7, 2012 23:07
Show Gist options
  • Save marcofalcioni/3290385 to your computer and use it in GitHub Desktop.
Save marcofalcioni/3290385 to your computer and use it in GitHub Desktop.
@view_config(route_name = 'logout', renderer = 'user_management/logout.mak')
def logout(request):
"""Logs out the user"""
headers = forget(request)
request.response.headers = headers
return {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment