Python Forum

Full Version: cookie operation
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i can not retrive cookie in python that i set.......
this code is for set up cookie.......
#!"E:\python\python.exe"
from http import cookies

c = cookies.SimpleCookie()

c["name"] = "nnnn"
c["age"] = "22"

print(c)
i want to retrive all this cookie .......
please help....
thanks in advanced
What version of Python are you using? Python 2 doesn't have the http module, but Python 3 does. Also, the shebang doesn't apply to Windows.