title: Flask Cookies are not working
body: <p>I am new to flask, just started to write code in flask. I tested my code on EC2 and local machine, on both cookies are not working. I dont know whats the problem.</p>
  
  <pre><code>@app.route('/cart/', methods = ['GET'])
  def cart_addition():
           response.set_cookie('productid', '11')
           if 'productid' in flask.request.cookies:
                                  output = 'Pass'
           else:
                                  output = 'Fail'
           return render_template('output.html',output=output)
  </code></pre>
  
  <p>But after running the server this printing 'Fail'. I even tried on localhost.</p>
  
  <p>I am running the server on this</p>
  
  <pre><code> app.run(host='0.0.0.0', port=8000)
  </code></pre>