Does anyone know how to retrieve javascript cookies in gae python? I’ve seen complicated examples around the web, like cookiejar, but I think that module is too much for my simple site. I’m just trying to make a shopping cart that will take js cookies, send it to server-side code (python) for verification, and then post the data to google checkout.
Thanks 🙂
Hope this code would help with your problem, w/ helpful link:
If you are little bit confused JS cookies and the HTTP cookies are just the same. See this article for more clear explanation.
Cookies are always transferred between
serverandclientwithin theHTTP header. In this code we are just using the ‘Set-cookie‘ header within the request from client in server.request.cookiesis a Pythondictwith cookies inside.