Hi there

I've been fighting with this problem for several hours now and I'm almost
too ashamed to ask,
but I'm unable to set a cookie using the Set-Cookie http header in appengine
that doesn't expire
at the end of the session.

Here is what I do to set the cookie:

   self.response.headers.add_header('Set-Cookie','key=value; expires=Fri,
31-Dec-2020 23:59:59 GMT')


The output of curl is:


HTTP/1.0 200 OK

Server: Development/1.0

Date: Fri, 27 May 2011 14:05:33 GMT

Content-Type: text/html; charset=utf-8

Cache-Control: no-cache

Set-Cookie: key=value; expires=Fri, 31-Dec-2020 23:59:59 GMT

Expires: Fri, 01 Jan 1990 00:00:00 GMT

Content-Length: 0


But as I said, when I close the browser, the cookie is gone. (Chrome also
detects it as a session cookie)


Anyone? You'd really save my weekend.


-Andrin

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to