[Zope] Cookie Dictionary

D. Rick Anderson ruger@comnett.net
Fri, 14 Mar 2003 11:30:35 -0800

Thanks for the reply!

ok ... then I guess I need to know how to convert it from a string to a 
dictionary. Is that possible? Is there something like _.dict(cookie) 
that will work?

Thanks again,


Geir Bækholt wrote:

>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