1,105,281 Community Members

Session in IFrame in Internet Explorer

Member Avatar
anish.anick
Light Poster
48 posts since Jan 2008
Reputation Points: 0 [?]
Q&As Helped to Solve: 3 [?]
Skill Endorsements: 0 [?]
 
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

Member Avatar
AleMonteiro
Master Poster
758 posts since Aug 2010
Reputation Points: 115 [?]
Q&As Helped to Solve: 143 [?]
Skill Endorsements: 29 [?]
 
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!

chaitanya_ysk
Newbie Poster
1 post since Jan 2014
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
Unverified Member
 
0
 

Thank you very much. It worked perfectly.

Regards,
Chaitanya.

You
Post:
Start New Discussion
View similar articles that have also been tagged: