Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何创建任何网站的cookie?
示例:当访问者访问我的网站时,我的网站会创建某个网站的 cookie(例如:http : //google.com、bing.com)。就像您直接访问这些链接时一样。
我的英语不好,但我希望你能理解我!
非常感谢 !
您不能为另一个域设置 cookie。能够做这样的事情将是一个严重的安全漏洞。
如果您想设置来自被访问域以外的域的 cookie,那么您需要包含一个 javascript 文件或来自目标域的 cookie 设置图像,以便为您设置 cookie。