Cross domain call COOKIES
A station iframe, the B station's page won't get the Cookies under the B station. If the page is from the frame, and the parent page and frame of the framework are not a site, the client default is to ban the header information to the page, so the server cannot identify the pages in the client frame, and naturally do not operate the Session.
solution:
COOKIE (2008-10-30 12:05:50) transdomain call through the P3P interface (2008-10-30 12:05:50) to reload the
label: cross domain cookie intersession classification: I am PHPer
test environment
www.b.com
First: to create a_setcookie.php files, the contents are as follows:
[code].lt; Tcookie (.Quot; test.quot; $_GET.#91;'id'.#93; time () 3600,.Quot; /.quot;.Quot;.A.com.quot;);
.Gt; The contents are as follows:
[code].lt; script src=.quot; http://www.a.com/a_setcookie.php? Id=www.b.com.quot;.Gt;.Lt; /script.gt; [/code]
- to - three files are created after the creation of the browsers:
http://www.b.com/b_setcookie.php
[code].lt, PHP
header ('P3P: CP=.quot; CURa ADMa); Time () 3600,.Quot; /.quot;.Quot;.A.com.quot;
.Gt; [/code]
conversion: http://blog.sina.com.cn/s/blog_4495c9610100biih.html