Home > Backend Development > PHP Tutorial > 关于读cookie的有关问题

关于读cookie的有关问题

WBOY
Release: 2016-06-13 13:40:13
Original
813 people have browsed it

关于读cookie的问题
在A的域名页面下有一个iframe框架,框架内的内容是调用B域名的页面。想在A域名页面的框架内页面进行读与写B域名下的cookie,这样做好象行不通,还有别的方法可以达到这个功能吗?请DX指教!

------解决方案--------------------
跨域不行的..
不如这样:在b域里将cookie写到一个文件里,然后在a域读b域的该文件,读出的内容在再写到a域的cookie里.
然后麻烦了一点,但应该可以解决你想要的效果
------解决方案--------------------
信任域

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template