Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT Browser not sending cookies to pop up windows
SWT Browser not sending cookies to pop up windows [message #459790] Wed, 17 August 2005 04:56 Go to next message
Vikram Kumar is currently offline Vikram KumarFriend
Messages: 4
Registered: July 2009
Junior Member
Hi,

I have been using SWT Browser class and am facing a strange problem. We
have embedded a SWT Browser in our application and when we open a
particular web site that site sets some cookies for that particular
domain. Now when I click a link for that site, it opens a pop up
window(which is IE) but strangely enough does not send the cookies along
with the request (I Believe this is happening because we are opening a new
instance of the Browser).

When I replicate the same steps in IE running independently, cookies are
sent to the pop up window and things work smoothly.

Could anyone please let me know, what I may be doing wrong ? Or is this
some functionality of SWT which I may be missing. Is there any workaround
available for the same using which
1) I could send the cookies explicitly through java when opening the site
in a new pop up window
2) The new pop up window also uses the existing instance of Browser.


Thanks,
Vikram
Re: SWT Browser not sending cookies to pop up windows [message #459812 is a reply to message #459790] Wed, 17 August 2005 16:22 Go to previous messageGo to next message
Vikram Kumar is currently offline Vikram KumarFriend
Messages: 4
Registered: July 2009
Junior Member
Hi,

I hope this question has been asked in the right forum. If not do let me
know. Also is it a known bug of SWT browser, or a new one which needs
to be reported ?

Thanks,

Vikram
Vikram wrote:
> Hi,
>
> I have been using SWT Browser class and am facing a strange problem. We
> have embedded a SWT Browser in our application and when we open a
> particular web site that site sets some cookies for that particular
> domain. Now when I click a link for that site, it opens a pop up
> window(which is IE) but strangely enough does not send the cookies along
> with the request (I Believe this is happening because we are opening a
> new instance of the Browser).
>
> When I replicate the same steps in IE running independently, cookies are
> sent to the pop up window and things work smoothly.
>
> Could anyone please let me know, what I may be doing wrong ? Or is this
> some functionality of SWT which I may be missing. Is there any
> workaround available for the same using which 1) I could send the
> cookies explicitly through java when opening the site in a new pop up
> window
> 2) The new pop up window also uses the existing instance of Browser.
>
>
> Thanks,
> Vikram
>
>
Re: SWT Browser not sending cookies to pop up windows [message #459851 is a reply to message #459812] Thu, 18 August 2005 11:36 Go to previous message
Vikram Kumar is currently offline Vikram KumarFriend
Messages: 4
Registered: July 2009
Junior Member
Hi,

I guess now, I know why the problem occurs. in IE whenever we open a
pop-up window, it opens in the same instance of the Browser whereas in SWT
a pop up window for a Browser would open up in a new instance of IE, and
hence would not maintain sny session info.

The workaround for the problem which worked for me was to capture the
newWindow event and then redirect the URL to instance of Browser within
the SWT application. Things should work because I believe that all
instances of Browser within an SWT app, use the same instance of IE.

Thanks,

Vikram
Previous Topic:CTabItem gradient color
Next Topic:DialogCellEditor text problem
Goto Forum:
  


Current Time: Thu Apr 25 06:56:35 GMT 2024

Powered by FUDForum. Page generated in 0.03083 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top