Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Iframe Facebook application and cookies [Internet Explorer]

I have downloaded the IBM P3P editor, created files and uploaded them to my server. And cookies are still not recognized in Internet Explorer. I've checked the P3P validation tool and it seems to validate.

The application can be viewed here: apps.facebook.com/naplesnews and the iframe points to www.naplesnews.com/facebook/app/.

Again www.naplesnews.com/facebook/app/ seems to validate with no issues as well.

Any idea what I'm missing here?

like image 800
Joe P Avatar asked Dec 02 '09 19:12

Joe P


1 Answers

Sorry to hear that you had to give up. I'm not sure what your exact issue is, but generally all your need for IE to accept cross-browser cookies is a P3P policy header. I'm not sure about the IBM tool. All I do for my PHP apps is the following bit of code prior to any page output:

//required for IE in iframe FB environments if sessions are to work.
header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');

So far I haven't had any problems with it in IE6, 7 or 8. Are you sure your security levels aren't set too high? This should work on the default levels.

There's separate issues I've had with session cookie validation and the Facebook client libraries, but those are various woes dealing with the actual cookie content, and not whether the cookies can be set or not.

like image 152
zombat Avatar answered Oct 06 '22 13:10

zombat