unset session on the browser Returns: a 200 HTTP response with set-cookie to "expired" to unset the cookie on the browser
()
| 279 | |
| 280 | @app.route("/session/kill", methods=["GET"]) |
| 281 | def 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"]) |