Facebook Applications IE7 Session Problem
June 21st, 2011 • Program
Facebook changed the way behaves to applications. What the new approach is, now on Facebook forces applications for developed in iFrame. So you can not select FBML anymore in the Application Settings Page. In this step, if you are using Sessions in your code, you will not be able to see expected results in IE7 because of its own bug. * You can just google it..
IE7 has a bug about Session expires in any refresh while you are inside an iFrame. To achieve this issue, you have to define P3P in your code (at header). For development this code will be life-saver..
PHP Code Block:
header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');
ASP.NET Code Block:
HttpContext.Current.Response.AddHeader("p3p", "CP=\""IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\""")
Resources:
http://gathadams.com/2007/06/25/how-to-set-third-party-cookies-with-iframe-facebook-applications/
http://stackoverflow.com/questions/4868251/facebook-iframe-application-ie7-not-allowing-cookies
http://stackoverflow.com/questions/306132/php-session-problem-only-in-ie-really-strange-problem