Cookie Confusion - How to Set a Cookie
- From: cbhoem@xxxxxxxxx
- Date: Mon, 28 Apr 2008 06:42:30 -0700 (PDT)
Hi -
I am trying my hand at python cookies. I'm confused about a few
things though. Do the python cookies get written to a cookies text
file? I have simple code below -- I see the cookie in my HTTP header
but do not get anything in the cookie text file. I'm working on
linux.
print "Content-type: text/html"
cookie = Cookie.SimpleCookie()
cookie['Test'] = 'abc'
print cookie
Are there rules about where in the header the set cookie line should
be?
Thanks in advance!
Christian
.
- Follow-Ups:
- Re: Cookie Confusion - How to Set a Cookie
- From: Aaron Watters
- Re: Cookie Confusion - How to Set a Cookie
- Prev by Date: Re: Receive data from socket stream
- Next by Date: Re: Receive data from socket stream
- Previous by thread: Checking for existance of feature / tools / solutions -- Something like Java webstart
- Next by thread: Re: Cookie Confusion - How to Set a Cookie
- Index(es):
Relevant Pages
|