In GEA(python version) , how can I form a Cookie, and how to response
it to user request?
I try as follow to create a Cookie.
NEW_SID = sha.new(repr(time.time())).hexdigest()
cookie = Cookie.SimpleCookie()
cookie['sid'] = NEW_SID
cookie['sid']['expires'] = 24*60*60
Is it ok?
How to response Cookie for request?
I try:
self.response.out.write(cookie)
self.response.out.write(webdata)
then the content of cookie is shown in the top of page.
How shall I do?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---