astadtla / csexwb2

Automatically exported from code.google.com/p/csexwb2
0 stars 0 forks source link

Session Cookes are not Passed to Popup Windows. #49

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Browse to a website that uses Cookies (ASP or ASP.Net)
2. Open a Popup Window
3. The Cookies are not passed to the popup window

What is the expected output? What do you see instead?
Session Cookies are Supposed to be passed to Popup Windows.
Popup windows are currently behaving as if they are being opened as a New 
Window, in that case no Session cookie would normally be passed.

What are the OS and IE versions?
Windows XP

What version of the product are you using?
Downloaded today from Google - 2.0. 

Please provide any additional information below.

This issue seems to be related to the version of the code that is availble 
on the Google Code site. The version on the Code Project site doesn't have 
this issue. 

Original issue reported on code.google.com by Brooke.V...@gmail.com on 18 Jun 2008 at 4:07

GoogleCodeExporter commented 8 years ago
Are you using the DempApp for testing?
Do you set the RegisterAsBrowser property of the popup to true?
Could you provide a specific url?

Regards,

MH

Original comment by mehr...@gmail.com on 18 Jun 2008 at 11:26

GoogleCodeExporter commented 8 years ago
I was running an unmodified version of the demo app from this website. I saw 
that
Issue #41 on this site was almost exactly what I was seeing. I forgot that our 
site
opens a popup and closes it quickly just to make sure that popups aren't being
blocked. Its the second popup where cookie info isn't passed and you end up 
with the
gray screen. I tried your workaround mentioned on Issue#41,  

if (isSecondaryPopup)
                return;
            e.Cancel = true;
            this.cEXWB1.NavToBlank();
            this.Hide();

This worked great, or so I thought. If I try to click a link again I hear a 
click but
no window opens. As far as I can tell the click event isn't even coming through 
to
the maninform code. I can't provide the url -internal site :-(

Do you think perhaps I would be better off just disposing of the popupForm 
instead of
letting it do its Show/hide trick?

Original comment by Brooke.V...@gmail.com on 19 Jun 2008 at 5:17

GoogleCodeExporter commented 8 years ago
Yes, disposing of the popup and spawning a new one is a better approach when 
dealing 
with cookies. I added the hide/show trick as a request and unfortunately, due 
to 
lack of time, did not test it properly.

In the next release, I will add comments to point out that hide/show trick is 
problematic when it comes to dealing with session cookies.

Regards,

MH 

Original comment by mehr...@gmail.com on 19 Jun 2008 at 10:11