Esempio n. 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('/')
Esempio n. 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('/')