title: setting and reading cookies in mod_python (apache)
body: <p>I've seen plenty of things explaining how to read and write cookies, however, I have no clue about how to do it in mod_python in apache. I tried putting this at the start of my HTML code, but it says to put it in the HTTP header. How do I do that?
  Also, how do I retrieve them? I was originally looking mainly at this site:
  <a href="http://webpython.codepoint.net/cgi_set_the_cookie" rel="nofollow">http://webpython.codepoint.net/cgi_set_the_cookie</a></p>
  
  <p>My code currently starts like this (and it displays as part of the HTML)</p>
  
  <pre><code>Content-Type: text/html
  Set-Cookie: test=1
  &lt;html&gt;
      &lt;head&gt;
  </code></pre>