I have  a SecurePage which is inherited from SitePage.
In my awake cycle of the SecurePage, I handle authentication, if the authentication is successful, then I set my cookie.   I have something like this
 
def setMyCookie(self):
   cookie = Cookie('val', 'key')
   t = timestuff()
   cookie.setExpires(t)
   self.response().addCookie(cookie)
 
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?
 
I have also tried to set the cookie in the respond cycle, but that is not working.  What am I doing wrong?


Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard