I have a project with a login page and a navigator page containing iframe
in it. All the other pages in the project are loading inside iframe
.
I am setting one session value to store userid from login page. After logging in, when I click on some pages which is loading inside iframe
and then click on an asp button which is outside of iframe
(in navigator page) my session value is getting null.
When I searched in internet, I found that adding Privacy Preferences Project(P3P) header could solve the issue.So I added it in login page, navigator page and in pages which loads inside of iframe
like the following:
private void Page_PreInit(object sender, System.EventArgs e){
HttpContext.Current.Response.AddHeader ("p3p","CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\"");
}
But still the same problem only with internet explorer 11.
Why does this happen? Please share your valuable suggestions to fix it.