File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Third party cookie handling in iFrame in IE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Third party cookie handling in iFrame in IE" Watch "Third party cookie handling in iFrame in IE" New topic
Author

Third party cookie handling in iFrame in IE

AditiDas Das
Greenhorn

Joined: Mar 08, 2011
Posts: 2
Hi,

We have an application where we are opening an external site in an iFrame on click of an anchor link.(to be precise we are using jQuery colorbox). so the domain of our application is different from the domain of the URL that we are trying to open. The iFrame blocks the third party cookies and hence the correct intended URL is not opened. Instead the index page gets opened.
If we try to change the browser settings (Internet Options-> Privacy-> Advanced->override cookie settings-checking both the checkboxes), the correct URL opens up in iframe.
We need to handle this in java. Our code base is on java 1.4.

Is there a way we can override the cookie settings and allow third party cookies to be set in iFrame so that the correct URL is opened.

Any help will be great.

Aditi
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61218
    
  66

No. What good would such security measures be if you could just easily override them? And no, you cannot change the browser settings either.

You'll have to adjust your approach to work within the security rules.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
AditiDas Das
Greenhorn

Joined: Mar 08, 2011
Posts: 2
Thanks for the response. I need one more clarification regarding this. The URL we are trying to open up in iFrame,when, is directly opened up in IE browser window, works fine. The intended URL opens up correctly(even though the browser settings are set as default). The problem occurs when we try to open up the URL in iFrame in IE (not in FireFox).
Is there a particular reason why it happens in iFrame in IE and not in IE browser?can there be a work around for handling this issue?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Third party cookie handling in iFrame in IE