views.py
def logout():
    """This function allows to execute the logout"""
    if "logged_in" not in session or session["logged_in"] != True:
        print("Unregistered user")
    print("Logout",session["username"])
    session.clear()
    return redirect(url_for('index'))
This function allows to execute the logout
This function allows to execute the logout
This function allows to execute the logout
def logout():
    if "logged_in" not in session or session["logged_in"] != True:
        print("Unregistered user")
    print("Logout",session["username"])
    session.clear()
    return redirect(url_for('index'))
def logout ( ) : if "logged_in" not in session or session [ "logged_in" ] != True : print ( "Unregistered user" ) print ( "Logout" , session [ "username" ] ) session . clear ( ) return redirect ( url_for ( 'index' ) )
This function allows to execute the logout
This function allows to execute the logout
"""This function allows to execute the logout"""