hNa
8ddlZddlmZddlmZddZdZdZy)N)cookies)parsectj}tj|}tj|}|||<t	|dk7rt	|dz}|||d<d||d<t|y)NriQzmax-age/path)rSimpleCookierquoteintprint)namevalueexpirecmaxAges     3/home/sultans/web/python/demo/5cookie/cookieFunc.py	setCookiersqAKKDKKEAdG
6{aV)#$	AdGFO	!Hctjjd}|yi}|jd}|D]1}|jdd\}}t	j
|}|||<3|S)NHTTP_COOKIEz; =)osenvirongetsplitrunquote)	cookieStrcookiesDictcookiesArraycookierr
value2s       r
getCookiesr"sm

}-I&K??4(LS+
uu%"D
rcRt}	|j|}|S#d}Y|SxYw)N)r"r)r
allCookiesr
s   r	getCookier&0s4Jt$LLs&)r)rhttprurllibrrr"r&rr<module>r*s




 
(r