Write ASP-style cookie (with keys) using Javascript; read using classic ASP

杀马特。学长 韩版系。学妹 提交于 2019-12-06 01:22:30

Should be doable.

Your asp example would make a cookie that would look similar to this:

Name:   user
Value:  firstname=John&lastname=Smith&country=Norway&age=25

so when you set your javascript cookies it should be a similar format, try something like:

document.cookie = "user=firstname=John&lastname=Smith&country=Norway&age=25;";
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!