P3P and cross-domain (cross-domain) cookie access (read and set)

Cross-domain to achieve cross-domain cookie settings in IE, try n method will not work, looked at the statistics, can be achieved by setting the value of header in p3p, really good :)
For example, to access b stand a station set a cookies, you can do so:
1. Create a file cookies.htm in b.com
  says:

1 < script  language ="javascript"  src ="http://a.com/setcookies.asp?par=a.com" ></ script >

Content setcookies.asp under 2.a.com as: 

< %
The Response.AddHeader 
" the P3P " " the CP = CURa ADMa DEVa the UNI PUR PSAo the INT BUS PSDO the OUR the STA on DEM the PRE the COM the NAV the OTC the NOI the DSP COR " the Response.Cookies ( " AAA " ). Domain  =  the Request ( "PAR") the Response .Cookies ( " AAA " = " this is the method in the b.com file access provided by the a.com Cookies " % >  

 


This may be provided by cookies.htm access files in a.com and b.com domain modified at corresponding cookies, and thus achieving the purpose of cross-domain access to the cookie set.

Reproduced in: https: //www.cnblogs.com/Spring/archive/2007/11/16/961753.html

Guess you like

Origin blog.csdn.net/weixin_34233856/article/details/93932469