Hi, I have been using python as an asp
scripting language, but don’t know how to set cookies. I tried import Cookie C = Cookie.SmartCookie() C["test"]="test1" C[“test”][“expires”]
= “ Response.Cookies=C I get an error AttributeError: Response.Cookie ?, line 0 raise
AttributeError, "%s.%s" % (self._username_, attr) Also I tried Response.Cookies(“test”)
= “test1” This does not give an error, but I don’t get any
cookie back. I have put this before the <html> tag. Also, how do I
set the path and expire times for cookies? Can anyone help? Thanks. Anesh. |