IE Blocking iFrame Cookies
Recently one of my facebook applications was not running correctly from inside an iFrame in IE. I tried it out and it looked like everything worked great in Safari and Firefox but not IE6 or IE7. The problem was i was not getting a session value on page. I was puzzled why would it do it. session value is stored on server not on browser. Then i thought as i am running my facebook app in iframe maybe it was blocking my session cookie. After firing up a packet sniffer it became obvious the cookie with the session ID was not being passed.
Then i found out about a W3C standard called Platform for Privacy Preferences or P3P for short. Any way i dont want to get any details about it cause its pretty boring stuff. So i found out this pretty solution. This will allow Internet Explorer to accept your third-party cookie. You will need to send the header on every page that sets a cookie.
header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');
About Zakir Hyder
This entry was written by The NewComer.