2/03/2007

Cookie can be written by Python and read by Javascript

If you set a cookie by using Python, you must specify the path to "/", which means it is valid for the entire site. The default path is "/cgi-bin/".
For example:
In Python:
cookie["SID"]["path"] = "/"

In Javascript,
document.cookie can read this one.

No comments: