Browsers that dont maintain session values inside iframe websites

4 Mar

Browsers that don’t maintain session vales inside iframe websites i.e.. Facebook apps mainly in Internet Explorer.┬áIn order to maintain session values properly add the following code in Global.asax file.

protected void Application_BeginRequest(object sender, EventArgs e)
  //For ie browser to maintain session values when using iframe
   HttpContext.Current.Response.AddHeader("p3p", "CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"");



Leave a Reply

Your email address will not be published. Required fields are marked *