Question

I inherited a site and I am trying to make it work in IE8. It works fine in every other browser.

I'm using the following P3P tag that I got from another post:

header( "P3P: CP=NON DSP LAW CUR ADM DEV TAI PSA PSD HIS OUR DEL IND UNI PUR COM NAV INT DEM CNT STA POL HEA PRE LOC IVD SAM IVA OTC");

If I inspect the headers, it is being sent, so why is IE8 still blocking cookies from within the iframe?

Was it helpful?

Solution

I believe your code just needs the CP value to contain quotes. For simplicity, I used single quotes for the outer string and double quotes for the value passed back in the header.

header( 'P3P: CP="NON DSP LAW CUR ADM DEV TAI PSA PSD HIS OUR DEL IND UNI PUR COM NAV INT DEM CNT STA POL HEA PRE LOC IVD SAM IVA OTC"' );
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top