Iframe some browsers will not maintain session values

When you using iframe some browser's will not maintain session values. In order to maintain session values properly add the below 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\"");


}

0 comments:

Post a Comment

Vikram Chandra Theme by BloggerThemes & NewWPThemes Sponsored by iBlogtoBlog