Session lost after showModalDialog or showModelessDialog

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Have been working on this one for weeks, and pulling my hair out.

We have three basic aspx or asp pages (happens with both).
All three forms write out the session id the browser window and that the
only vb code in all three files.

Form1 writes out the session id and has a html button which opens Form 2 in
Modal Dialog using either showModalDialog or showModelessDialog

Form2 writes out the session id and has a html button which opens Form 3
using a window.open

Form3 writes out the sesion id

1. Close all browser windows, and start by opening one IE window and
navigating to anywhere.
2. Create another new browser window and open Form 1
3. Click the html button to open Form2 in a modal dialog window the session
ids are the same.
4. Click the html button on form2 to open form3 and the session id is lost
in form3 and a new session created

If we close the first browse window we created, the one we navigated to
anywhere in, and repeat steps 3 and 4, the sesssions are the same across all
three pages?

If we change the javascript function on Form1 to use window.open instead,
the session is retained across all three pages.

Have tried this across three different servers, many different clients and
it continues to happen.

Is this a bug, am I doing somthing I can't, or is this just another one of
the weird things in life we will never get the bottom of.

Hope someone can shed some light on this.

IE Version: 6.0.2900.2180.xpsp_sp2_gdr.050301-1519
but also happens on many other version I have tried.

.



Relevant Pages

  • Re: Attempt to de-mystify AJAX
    ... our shopping cart cookies are ... >> the session from the temp files and the cookie will automatically expire ... > the session key is valid (inactivity time limit not reached). ... > What will happen, however, is that if the browser window goes away, the ...
    (comp.databases.pick)
  • Re: Counting number of users logged in
    ... unless you're using the Membership class for logins. ... session state management and relying on counting the number of sessions active. ... just closed the browser window, or those who have left the browser open ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Session data overwritten when using two browser instances (CTR+N)
    ... The culprint is the way the second browser window is opened. ... share session variables and when the user change event in browser window no ... the session variables is changed also for browser window no 1. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Invalid session when a new IE window is opened using window.open()
    ... browser window using javascript's window.open. ... SessionTimeOut exception invalidating the session. ... opens a IE window but not a IE process and thus carries the same ...
    (microsoft.public.inetserver.asp.general)