如何设置Cookie和getCookie使用域名 [英] how to setCookie and getCookie using domain name
本文介绍了如何设置Cookie和getCookie使用域名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我保存cookie,它存储与当前URL链接,也当我获取cookie搜索的当前URL。我需要保存和检索cookie与我自己定义的URL链接。
when i save cookie, it stored with the current URL link., also when i get cookie that search for the current URL only. i need to save and retrieve cookies with my own defined URL links. can you help me
推荐答案
您无法读取不同网域设定的Cookie。如果可能,这将是一个可怕的安全问题。
You cannot read cookies set by different domains. That would be a horrific security problem if it was possible.
这篇关于如何设置Cookie和getCookie使用域名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文