Calling Cookie Values
Victor Subervi
victorsubervi at gmail.com
Tue Dec 15 15:14:37 EST 2009
On Tue, Dec 15, 2009 at 4:05 PM, MRAB <python at mrabarnett.plus.com> wrote:
> What you got from HTTP_COOKIE was a _string_ (or None). You then need to
> turn it into a cookie:
>
> cookie_string = os.environ.get('HTTP_COOKIE')
> if cookie_string:
> cookie = Cookie.SimpleCookie(cookie_string)
> ...
> else:
> cookie = Cookie.SimpleCookie()
>
Ah. Thanks!
V
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20091215/b39f2b43/attachment-0001.html>
More information about the Python-list
mailing list