thanks. i find a page about it. do you mean this way?
http://appengine-cookbook.appspot.com/recipe/a-simple-cookie-class/?id=ahJhcHBlbmdpbmUtY29va2Jvb2tyqgELEgtSZWNpcGVJbmRleCJGYWhKaGNIQmxibWRwYm1VdFkyOXZhMkp2YjJ0eUhnc1NDRU5oZEdWbmIzSjVJaEJYWldKaGNIQWdSbkpoYldWM2IzSnJEQQwLEgZSZWNpcGUiR2FoSmhjSEJsYm1kcGJtVXRZMjl2YTJKdmIydHlIZ3NTQ0VOaGRHVm5iM0o1SWhCWFpXSmhjSEFnUm5KaGJXVjNiM0pyREEzDA On 5月8日, 下午4时57分, "Nick Johnson (Google)" <[email protected]> wrote: > Hi, > > Changing the cookies in the request will not affect the cookies on the > client. You need to send a "Set-Cookie" header to the client. You may > find the Cookie library in the Python standard lib useful for > generating these. > > -Nick Johnson > > On Fri, May 8, 2009 at 9:01 AM, saintthor <[email protected]> wrote: > > > for example, in get() > > > if not self.request.cookies: > > self.request.cookies["d"] = "thor" > > self.response.out.write( "no cookies." ) > > else: > > self.response.out.write( self.request.cookies["d"] ) > > > refresh the page some times, it always show me "no cookies." > > > how to save the cookies after setting a value? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
