Hi All,
I have a web site where few pages are shown inside an IFrame.. The problem is with session in IE.. How can i get session in IE IFrames... Pls help
Thanks
Hi All,
I have a web site where few pages are shown inside an IFrame.. The problem is with session in IE.. How can i get session in IE IFrames... Pls help
Thanks
This is a known bug, to fix add this code inside the On_Init event.
Response.AddHeader( "p3p", "CP=\"IDC DSP COR ADM DEVi TATi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\"" );
I suggest that you put in on a master page or, as I do: I extend the System.Web.UI.Page and override the function:
//---------------------
// OnInit
//---------------------
protected override void OnInit ( EventArgs e )
{
// Header para resolver problema de sessão dentro de frames
Response.AddHeader( "p3p", "CP=\"IDC DSP COR ADM DEVi TATi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\"" );
}
Then in my page I use this class as the base.
Hope it helps!
Thank you very much. It worked perfectly.
Regards,
Chaitanya.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.