Facebook, IE and P3P

心已入冬 提交于 2019-12-10 20:57:50

问题


For the last few weeks I'm trying to locate a problem with session cookie saving in IE. Our application is running inside an iFrame, so the cookies are considered 3rd party.

I'm aware of the P3P header required by IE 6 and 7, but for some reason I still see many IE6/7 users which never save cookies. I'm also unable to reproduce it on our own machines.

I tried the following P3P header: CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\"

Does anyone knows the exact requirements of IE6/7 for saving 3rd party cookies? I couldn't find it anywhere.

Note: I know that this topic has been disscussed many times, and I've read almost any thread on the subject.

Thanks, Shlomi Fruchter


回答1:


Use this one it is working perfect in IE and all other browsers

header('P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"');



回答2:


You should read http://blogs.msdn.com/b/ieinternals/archive/2010/06/05/understanding-internet-explorer-cookie-controls.aspx.



来源:https://stackoverflow.com/questions/6241626/facebook-ie-and-p3p

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