[Zope] Cookies and dictionaries

Lennart Regebro regebro at nuxeo.com
Mon Feb 9 05:08:29 EST 2004


From: "Kashif Jabbar" <kjabbar at ssidecisions.com>
> I am trying to store a dictionary in a cookie which I would like to
> retrieve later and use.

Cookies are stored by the clients. They have no idea what a python
dictionary are.
Do you really want to store it in a cookie, or do you just want to store ite
temporarily? Because in the later case, using a session might be simpler.

Otherwise I maybe you can use "eval" to convert it back to a dictionary?





More information about the Zope mailing list