Пример #1
0
def logout():
    ''' log out, remove session cookies, etc. '''

    #return_to = request.form.get('from', 'index')

    # delete the session from the database:
    try:
        user_session.logout()
    except Exception as e:
        print 'Error Logging Out: %s' % e
        flash('error logging out. That is odd')

    # return to dashboard
    return redirect('/')
Пример #2
0
def logout():
    ''' log out, remove session cookies, etc. '''

    #return_to = request.form.get('from', 'index')

    # delete the session from the database:
    try:
        user_session.logout()
    except Exception as e:
        print 'Error Logging Out: %s' % e
        flash('error logging out. That is odd')

    # return to dashboard
    return redirect('/')