470,856 Members | 2,520 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,856 developers. It's quick & easy.

Multiple iframes in IE-7 and session cookie


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
3 7354
6,596 Expert 4TB
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
Using PHP? add
To the page that should be displayed inside the iframe!
Jul 16 '08 #3
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.

Similar topics

10 posts views Thread by maxim vexler | last post: by
1 post views Thread by Steve P | last post: by
4 posts views Thread by Howard Jess | last post: by
2 posts views Thread by Chad McCune | last post: by
2 posts views Thread by Guadala Harry | last post: by
4 posts views Thread by Alex D. | last post: by
11 posts views Thread by Kent Feiler | last post: by
1 post views Thread by avi.craigslist | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.