Sunday, November 09, 2008

IE Blocks IFrame Session Cookies

I had trouble persisting session data between two transitioning pages in an iframe in IE (7+ i think). The page in the iframe and the parent page (containing the iframe) are in two different domains.

For the browser to allow the cookie in PHP, just add:
header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');

Source:
http://adamyoung.net/IE-Blocking-iFrame-Cookies

0 Comments:

Post a Comment

<< Home