handlers.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:aiohttp_cas 作者: bard-it 项目源码 文件源码
def logout_handler(request):
    """Handles logging out

    Gets the logout route, deletes the session data, then redirects the user
    to the logout route.
    """
    session = await get_session(request)
    on_logout = request.app[APP_KEY]['ON_LOGOUT']
    # Delete the session key and redirect to the logout url
    del session[SESSION_KEY]
    return web.HTTPFound(on_logout)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号