MCPcopy
hub / github.com/pallets/flask / logout

Function logout

examples/tutorial/flaskr/auth.py:113–116  ·  view source on GitHub ↗

Clear the current session, including the stored user id.

()

Source from the content-addressed store, hash-verified

111
112@bp.route("/logout")
113def logout():
114 """Clear the current session, including the stored user id."""
115 session.clear()
116 return redirect(url_for("index"))

Callers

nothing calls this directly

Calls 2

redirectFunction · 0.90
url_forFunction · 0.90

Tested by

no test coverage detected