title: Setting a cookie in flask
body: <p>I am trying to create a cookie in flask. The partial example in the manual is:</p>
  <pre><code>resp = make_response(render_template(...))
  resp.set_cookie(’username’, ’the username’)
  </code></pre>
  <p>So I implement it as:</p>
  <pre><code>resp = render_template('show_entries.html', AO_sInteger = session.get('AO_sInteger'))
  resp.set_cookie('AO_sInteger', AO_sInteger)
  </code></pre>
  <p>The system then returns this error:</p>
  <pre><code>File &quot;...\Flaskr101.py&quot;, line 19, in add_entry
  resp.set_cookie('AO_sInteger', AO_sInteger)
  AttributeError: 'unicode' object has no attribute 'set_cookie'
  </code></pre>
  <p>How can I fix this problem?</p>