In frameset, where the frame is from a third party site (different IP or different domain name), then by default IE will automatically disable the cookies of these sites, that is, when a URL is requested in the HTTP header does not send their cookies, Includes a cookie for the session. Note that the cookies that these sites set in the response are still sent to the browser.
When the user browses the a.php, the A.com writes to the first party cookie, and its embedded iframe points to b.php. At this point, the B.Com write to the Third-party cookies, so it is ie when the door outside. So, every time a user submits a cookie, it hangs up. Because no real server can be transmitted.
Cause analysis
Ie6/ie7 supported P3P (Platform for privacy Preferences Project (P3P) specification) protocol to prevent third parties from having no privacy security statement by default
Solution.
PHP's Program
Can be written directly in the B Web site
The code is as follows |
Copy Code |
<?php Header (' p3p:cp= "cura ADMa DEVa Psao psdo our bus UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR" ") ?> |
So you can accept a third party cookie.
A simple C # application
code is as follows |
copy code |
if ( Request.Browser.Browser.ToUpper (). Contains ("IE")) Response.Headers.Add ("P3P", "Cp=cao PSA our"); |