[Zope] Cookie Dictionary
Geir Bækholt
Geir Bækholt
Fri, 14 Mar 2003 20:29:32 +0100
On Fri, 14 Mar 2003 11:21:26 -0800 GMT (..20:21 where i live(GMT+1) )
D. Rick Anderson asked the Zope mailinglist about the following:
DRA> Can you store a dictionary in a cookie? I've been trying and it keeps
DRA> barfing on me. If I set the dictionary in the REQUEST, it works just
DRA> fine, but if I set it as a cookie, and then try to reference it with
DRA> <dtml-var "cookie['key']"> if bombs with "sequence index must be an
DRA> integer". Dost it think it's a list?
it is a string when you get it back.. cookies are always strings
--
Geir Bækholt