By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,760 Members | 969 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,760 IT Pros & Developers. It's quick & easy.

Multiple iframes in IE-7 and session cookie

P: 1

I have been stucked with an issue related to Multiple iframes in IE-7 and session cookie since last couple of days. It will be highly appreciated if any one can provide me a solution for it. Here is the details of the problem, i am facing-

I have two iFrames on one of my JSP pages. In one iFrame, i am processing some api logics and then it opens some flash content from my external Content server using parent.<iframe>.location.href=URL;

It is working fine in IE-6. But when the site gets accessed using IE-7, the flash content gets opened in a new window.

I found through some online refferences that its a IE-7 bug that it work in this manner when using multiple iFrames.

Now I also tried to remove one iFrame and tried to handle everything in a single iFrame. In this case the content gets opened in the iFrame without any trouble. but when it tries to open any other page in the same iFrame again it prompts an alert saying "Attempt to set cookie <somecookiename> failed. Please enable cookie. This behaviour can be seen in both IE-6 and IE-7.

Please help!!!
Jan 9 '07 #1
Share this Question
Share on Google+
3 Replies

Expert 5K+
P: 6,596
Perhaps this can be solved with Tools: Internet Options: General tab: Tabbed Browsing Settings (which you get to from the Tabs: Settings button). You may be able to play with these settings in order to make it work.
Jan 10 '07 #2

P: 1
Using PHP? add
To the page that should be displayed inside the iframe!
Jul 16 '08 #3

P: 1
Yep I'm having the same issue with multiple Iframe cookies being accepted in IE. I'll post the answer here when i figure it out. I couldn't help but add some clarification to the comment Icnit4 left. If you can't access or edit the page you are displaying in the iframe (ie 3rd party store or not your website) then you would put that PHP header code in your iframe template page itself at the very top of the page.
Jan 22 '10 #4

Post your reply

Sign in to post your reply or Sign up for a free account.