[Zope] Cookie Dictionary
   
    Geir Bækholt
     
    Geir Bækholt 
       
    Fri, 14 Mar 2003 21:05:25 +0100
    
    
  
On  Fri, 14 Mar 2003 11:30:35 -0800 GMT (..20:30 where i live(GMT+1) )
D. Rick Anderson asked the Zope mailinglist about the following:
  
DRA> Thanks for the reply!
DRA> ok ... then I guess I need to know how to convert it from a string to a 
DRA> dictionary. Is that possible? Is there something like _.dict(cookie) 
DRA> that will work?
not sure. i would guess you would have to make your own format/parser
according to your needs. Tough if you are to handle all cases on a
general basis, simple if you know what the dicts will be like. :)
- also : there is a limit (255 ?? ) to how long cookie strings can be , so
cookies are really not a very good tool for complex data storage
You could prehaps get around the problem by using sessions instead ?
--
Geir Bækholt