Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #11305

Re: Problem reading HTTP_COOKIE

References <SNT144-W494614E354EFD78D3774A5C7250@phx.gbl>
Date 2011-08-12 21:29 +0100
Subject Re: Problem reading HTTP_COOKIE
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.2236.1313180967.1164.python-list@python.org> (permalink)

Show all headers | View raw


On Fri, Aug 12, 2011 at 4:55 PM, Jack Hatterly <jackhatterly@hotmail.com> wrote:
> It prints "None". However, when I look in my browser's cookie jar, there is
> a cookie "www.my_site.com" where my_site is the site from which I am surfing
> the above script. What gives?
>

I assume that what you mean is that it prints "None" even after you
hit F5 to reload the page, as the first run of the script will never
have a cookie.

Your script is now not actually setting any cookie. What cookie are
you seeing in your browser? It may be something created and consumed
by your framework, somewhere.

ChrisA

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Problem reading HTTP_COOKIE Chris Angelico <rosuav@gmail.com> - 2011-08-12 21:29 +0100

csiph-web