aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes How do I enable cookie for third party website in IE from java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How do I enable cookie for third party website in IE from java" Watch "How do I enable cookie for third party website in IE from java" New topic
Author

How do I enable cookie for third party website in IE from java

dhiren sangani
Greenhorn

Joined: May 22, 2007
Posts: 18
Hi All,

I am using IFrame in jsp and trying to login into third party web site. It perfectly works for fire fox and chrome but it doesn't work for IE. It gives error like "Access is denied".
I have also tried to set response header as below :

response.setHeader("P3P", "CP='IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA'");

But still it doesn't seems to work.

When I manually set privacy level to "Accept All Cookies" then it works in IE also but I want to do it through program.

Please let me know how can I do that.

Thanks in advance
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You can not change user's security settings with code.

Eric
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61766
    
  67

Imagine the security nightmare if you could!


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
dhiren sangani
Greenhorn

Joined: May 22, 2007
Posts: 18
Thanks Eric and Bear for reply,

I agree that we can not change user security, but when I searched in google then I found many links in which they have mentioned that by setting P3P header we can resolve this issue in IE. I just want to read all content and do not want to modify anything on site. Is there any possible way to do it ? I mean can we only ready and display content ? Same thing is working in Firefox and Chrome. I just want to show third-party content.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do I enable cookie for third party website in IE from java