Iframe Facebook application and cookies [Internet Explorer]

余生长醉 提交于 2019-11-27 18:54:02

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.

Bill Ortell

Just to add/enhance the above for those who read PHP as OMG! ;)... here's the META tag that you'd place into your somewhere so that IE will work. I used the meta tag, just to eliminate one more thing for PHP to do :)

<meta http-equiv="P3P" content='CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"' />

Hope it helps someone else... in my case, I was using it in a facebook memory game app that everyone except IE'rs were able to view ;) but this fixed it...

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!