Cross domain call COOKIES

time:11-04-16 forum:PHP tools and code
  When reloaded from the content of the other station (B station) from the http://www.im286.com/thread-7016973-1-1.html

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
  • 2

prev:"Mud man Chen" is obsessed with the Yell... next:AM2 speed dragon 3200 processor UNIKA 69...
post comment
Notice



approved   The couple made tea by hand in deep ...   What day can "star children" be inte...   Ji'nan Qianfo Hill Xingguo monastery...   2017 SONY children's life is a conce...   Massaging the acupoints can relieve ...
rand   Fast recording of Google /Baidu Ping...   The solution of PHP output random co...   For MySQL Illegal mix of collations ...   The difference between gbk_chinese_c...   PHP string intercept function substr...
ads

other

Because all the contents of this site are reproduced from other media, the intention is to provide free services to the public, but it does not mean that this site agrees with its views, and can not be responsible for the authenticity of its verification, such as the copyright unit or individual of the manuscript does not want to publish on this site, please Contact me, I will immediately remove it, thank you. Contact: atseashawk@163.com