Open IE Window with Java Script but break the parent child relationship between windows

Hello,
We have some Java Script code that uses the Window.Open command to spawn a new IE window. This window contains a URL to a sign on screen that the user can then type in their user id and P/W to access this system. The "parent" window remains open for the user to use different selections to acess other options as needed.
The problem is - if they do not log out of the system correctly (from the "child" window) then there is some sort of "connection" maintained betweeen the parent window and the child window (even though the child window is closed) and it seems the "session" is maintained for the child window. Therefore if they now pick another option in the parent window and then type in the user/pw to go back into the system - they end up back where they were rather than where they "should be" based upon the user and p/w they enter in the child window.
So the question is this - is there some way to spawn a new IE window using java script that becomes completely independent of the parent window and bears no relationship to it (for example as though the user had just opened a seperate IE window from a menu again).
As I say we are using Window.Open right now - and not sure if there are additional parameters that would "disconnect" the child from its parent OR if there is a differnt command that would allow us to open IE independently.

An example of the code we are using is in the Code snippet.
MyWindow = window.open(fullurl,name,"scrollbars=yes,resizable=yes,status=yes,location=no,width=" + width + ",height=" + height + ",left=" + left + ",top=" + top);
 
MyWindow.focus();

Open in new window

monkmanusaAsked:
Who is Participating?
 
monkmanusaAuthor Commented:
Looks like we cannot find an answer.
Never mind - but thanks anyway to everyone who tried.
0
 
ChristoferDutzCommented:
How about a simple "<a href="url" target="blank">text</a>" ? This opens a brand new window and not a popup-window.
0
 
ChristoferDutzCommented:
Argl ... I meant ... "_blank"
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

 
ruscompCommented:
I know that "location.replace()" (instead of "location.href") will break the history, but not sure if it will break the relationship... article here:
http://www.bloggingdeveloper.com/post/Location-href-vs-Location-replace---The-Difference-Between-JavaScript-Redirect-Methods.aspx

More here about parent-child relationships:
http://bytes.com/groups/javascript/513757-decouple-parent-window-children 
0
 
monkmanusaAuthor Commented:
Hi Christofer,
Thanks for the suggestion - though I am not sure how what you typed would fit into the code.
The code I showed is within the "else" clause (see addiitonal snippet) - how would what you suggested fit into othe script and where exactly?
I am not the programmer - I just happen to be out trying to find an answer to his problem........and I am not a script guru - I tinker every now and again so apologies if my question seems lame and seems obvious.
else {
    MyWindow = window.open(fullurl,name,"scrollbars=yes,resizable=yes,status=yes,location=no,width=" + width + ",height=" + height + ",left=" + left + ",top=" + top);
    MyWindow.focus();
    }

Open in new window

0
 
ruscompCommented:
As explained here:
http://msdn.microsoft.com/en-us/library/ms536651(VS.85).aspx

The second parameter would have to be the equivalent of "_blank"
else {
    MyWindow = window.open(fullurl,'_blank',"scrollbars=yes,resizable=yes,status=yes,location=no,width=" + width + ",height=" + height + ",left=" + left + ",top=" + top);
    MyWindow.focus();
    }
0
 
monkmanusaAuthor Commented:
Hello all,
Well - I passed this on to my guy - but did not work - we are still having the same issue.

If anyone has any other options to open a completely independent IE window - then please help.
Thanks.
0
 
ChristoferDutzCommented:
After reading your post again, I have to admit, that I doubt it is possible to achieve what you want. The problem is, that session-tracking is usually implemented by a non-persistent session cookie. When you start the IE that window/tab and all Windows it opens will be related and will share the same cookie information. A solution would be to start a completely new browser instance, but that is not possible from within the browser itself.

I would suggest, adding an "invalidate session" right before the login-execution. I don't know what server-side logic you are using. When dealing with servlets and JSPs I remember you could explicitly invalidate a session and start a new one.
0
 
monkmanusaAuthor Commented:
Closing out the open question
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.