How to set a cookie and redirect the user to another url logged in? Flask flyf35 — 8 April 2023 · Comments off Solution resp = make_response(render_template(url)) resp.set_cookie('userID', user) return resp