예제 #1
0
파일: home.py 프로젝트: phuclc/dienthoai
def logout():
    identity.logout()
    return redirect('/')
예제 #2
0
파일: home.py 프로젝트: phuclc/dienthoai
def logout():
    identity.logout()
    resp = make_response(redirect("/"))
    resp.set_cookie('sid', expires=0)
    resp.set_cookie('userId', expires=0)
    return resp