4 Mar

Browsers that dont maintain session values inside iframe websites

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 *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>