最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Accessing Cookies of Other Domains using JavaScriptJava - Stack Overflow

programmeradmin1浏览0评论

I am developing a Analytics Software and there is a need to fetch or read User Behaviour from petitor websites. I am thinking that accessing the information from cookies of the petitor site would be a better option. Is there any alternative to this. Also, How to access cookies from all domains using either JavaScript or Java.

I am developing a Analytics Software and there is a need to fetch or read User Behaviour from petitor websites. I am thinking that accessing the information from cookies of the petitor site would be a better option. Is there any alternative to this. Also, How to access cookies from all domains using either JavaScript or Java.

Share Improve this question edited Dec 27, 2013 at 7:44 Jeevan Mysore asked Dec 27, 2013 at 5:53 Jeevan MysoreJeevan Mysore 2555 silver badges17 bronze badges 2
  • I do not think you can do this, especially in java – Rugal Commented Dec 27, 2013 at 6:02
  • Yes Rugal, I also thought that it is not possible using Java, so I am looking for an alternative. – Jeevan Mysore Commented Dec 27, 2013 at 6:16
Add a ment  | 

2 Answers 2

Reset to default 3

If this would have been possible the e-merce world would have been different. It was possible in early browsers but in modern browsers you cannot access cookies from other domains .

And if this is possible it is a security risk too, because typically information regarding sessions on a website will be stored in a cookie. If you are able to read cookies on other domains that is a security breach.

发布评论

评论列表(0)

  1. 暂无评论