On Jan 7, 9:35 am, tryg.ol...@gmail.com wrote:
Hello -
This is my first attempt at python cookies. I'm using the Cookie
module and trying to set a cookie. Below is my code. The cookie does
not get set. What am I doing wrong?
print Cache-Control: max-age=0, must-revalidate, no-store
On Jan 7, 9:35 am, tryg.ol...@gmail.com wrote:
Hello -
This is my first attempt at python cookies. I'm using the Cookie
module and trying to set a cookie. Below is my code. The cookie does
not get set. What am I doing wrong?
print Cache-Control: max-age=0, must-revalidate, no-store
Hello -
I managed to get a cookie set. Now I want to delete it but it is not
working.
Do I need to do another 'set-cookie' in the HTTP header? I tried
(code below setting expires to 0) and it didn't work.
c = Cookie.SimpleCookie(os.environ[HTTP_COOKIE])
c[mycook][expires] = 0
print c
In case
On Jan 8, 1:16 pm, Jose C houdinihoun...@gmail.com wrote:
c[mycook][expires] = 0
Set [expires] using the following format to any time less than
current (which causes the browser to delete the cookie).
Here's a function I use to return a cookie expiry timestamp, negative
values passed in
Hello -
This is my first attempt at python cookies. I'm using the Cookie
module and trying to set a cookie. Below is my code. The cookie does
not get set. What am I doing wrong?
print Cache-Control: max-age=0, must-revalidate, no-store
print Content-type: text/html
print
print