使用SimpleHTTPServer存储cookie值

时间:2014-11-07 19:10:34

标签: javascript python html

我使用SimpleHTTPServer使用

托管一堆html文件
python -m SimpleHTTPServer

html文件包含使用cookie识别访问者的JavaScript。如果一个不存在,javascript设置cookie,否则读取它。我想在每次访问时将cookie的值存储在服务器上(可能在文本文件中)。我怎样才能做到这一点?

0 个答案:

没有答案