Hi all
I can get value from a cookie but I can not delete it
This is my test code :
print cherrypy.request.simpleCookie['new_page_name'].value
cherrypy.response.simpleCookie['new_page_name']['expires'] = 0
You can see that the first request line worked fine. But the second
line cause error, I am sure that there is no operation will set the
cookie expires between these two lines.
I think there are some differents between response and request
cherrypy.response.simpleCookie.has_key('new_page_name')
will return False, but
cherrypy.request.simpleCookie.has_key('new_page_name')
will return True.
--
with kind regards
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---