1.11M Members

Session in IFrame in Internet Explorer

 
0
 

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

 
0
 

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!

 
0
 

Thank you very much. It worked perfectly.

Regards,
Chaitanya.

You
This article has been dead for over six months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: