跨域共享cookies

一個簡單的跨域方法,當訪問一個頁面的是,寫入每一個需要共享的域名,用iframe 引入調用其他域名寫入,可以寫入。例如


<iframe style="display: none" src="http://wx.huolan.net/index/b.php?uck=17057"></iframe>
<iframe style="display: none" src="http://wx.weilai.net/index/b.php?uck=17057"></iframe>
<iframe style="display: none" src="http://wx.27.cn/index/b.php?uck=17057"></iframe>
<iframe style="display: none" src="http://wx.kanglu.com/index/b.php?uck=17057"></iframe>
<iframe style="display: none" src="http://wx.zuiyu.com/index/b.php?uck=17057"></iframe>
<iframe style="display: none" src="http://wx.qilincar.com/index/b.php?uck=17057"></iframe>


這幾個域名都是指定到..b.php文件在,b.php寫入cookie,當訪問這幾個域名的時候,都可以調用對應的cookie。


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章