title: How to set cookie in Python Flask?
body: <p>In this way, I want to set my cookie. But it fails to set.</p>
  
  <pre><code>@app.route('/')
  def index():
      res = flask.make_response()
      res.set_cookie("name", value="I am cookie")
  </code></pre>
  
  <p>When I print <code>res</code> it shows <code>&lt;Response 0 bytes [200 OK]</code> But not set cookie</p>