Uzo Uzo wrote:
> def setMyCookie(self):
> cookie = Cookie('val', 'key')
> t = timestuff()
> After calling this, if I print self.request()._cookies, I don't see it.
> also self.request().hasCookie('key') returns a 0. Why is that?
You're adding the cookie to the response, but looking for it in the
request. Try looking for it in self.response().cookies(). Maybe it's a
simple request/response slip-up?