⇤ ← Revision 1 as of 2006-03-28 14:42:56
Size: 371
Comment: Python通用Cookie操作方式
|
← Revision 2 as of 2009-12-25 07:11:05 ⇥
Size: 371
Comment: converted to 1.6 markup
|
No differences found! |
适合于所有的python framework
写Cookie
读Cookie
Toggle line numbers
1 c2=Cookie.SmartCookie(os.environ["HTTP_COOKIE"])
2 #c2.load(os.environ["HTTP_COOKIE"])
3 return "<pre>%s</pre>"%(c2["user"].value,)