MCPcopy
hub / github.com/OWASP/Nettacker / session_kill

Function session_kill

nettacker/api/engine.py:281–291  ·  view source on GitHub ↗

unset session on the browser Returns: a 200 HTTP response with set-cookie to "expired" to unset the cookie on the browser

()

Source from the content-addressed store, hash-verified

279
280@app.route("/session/kill", methods=["GET"])
281def session_kill():
282 """
283 unset session on the browser
284
285 Returns:
286 a 200 HTTP response with set-cookie to "expired"
287 to unset the cookie on the browser
288 """
289 res = make_response(jsonify(structure(status="ok", msg=_("browser_session_killed"))))
290 res.set_cookie("key", "", expires=0)
291 return res
292
293
294@app.route("/results/get_list", methods=["GET"])

Callers

nothing calls this directly

Calls 2

structureFunction · 0.90
_Function · 0.50

Tested by

no test coverage detected