Http sessions merged after window.open() even url is on Edge IE mode exception list

Zhu, Ligong 240 Reputation points
2025-02-19T12:26:29.11+00:00

Hi,

We have a session merge issue in an web application and its code looks like this:

<A onmouseover="window.status='AAAAA Home Page'; return true;" onfocus="window.status='AAAAA Home Page'; return true;"

onmouseout="window.status=''; return true;"

onblur="window.status=''; return true;"

title="HACPS Case Analysis"

class=MediumLinks

accessKey=N

href="javascript:displayCaseAnalysis()"

name="AAAAA">AAAAA</A>

function displayCaseAnalysis() {

Copy

var caseAnalysisURL = "https://aaaaa/bb" + "/searchDoc.action?caseNumber=" + "1520655" + "&folderNumber=" + "1264796";

var theDate = new Date;

var theDateTime = theDate.getTime();

var newScreenName = "CAA" + theDateTime;

window.open(caseAnalysisURL, newScreenName, "CAA");	

}

window.open code above works fine to open the first window, but if I click the same link again ('caseAnalysisURL' value and 'newScreenName'' value will be different each time), it always starts second window sharing the same session with the first window if current window is in IE mode. If the current window is in Edge then it always works fine, no merge. We verified that "caseAnalysisURL" is on Edge IE mode exception list set by our server team.

We also tried this code but it doesn't make any difference:

function displayCaseAnalysis() {

Copy

var caseAnalysisURL = "https://aaaaa/bb" + "/searchDoc.action?caseNumber=" + "1520655" + "&folderNumber=" + "1264796";

var theDate = new Date;

var theDateTime = theDate.getTime();

var newScreenName = "CAA" + theDateTime;

window.open(caseAnalysisURL, newScreenName, '_blank', 'top=0 left=0; toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,copyhistory=0, height=500 width=500');	

}

Can you tell me what wrong with this code in IE mode? We need each new window to open with its own session.

Thanks.

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,465 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ShiJieLi-MSFT 11,741 Reputation points Microsoft Vendor
    2025-02-21T02:59:13.9933333+00:00

    Hi @Zhu, Ligong,

    Please note that it actually conforms to the behavior of legacy Internet Explorer. When you use Internet Explorer to open no-merge sessions, you'll have to create a new IE instance every time to achieve that. Navigating through the same IE instance will merge the newly opened sessions.

    When it comes to Edge IE mode, if you try to open new links from an IE mode tab, it is just like navigating through the same IE instance, so the sessions will merge. But if you open new links from an Edge tab, Edge calls a new IE process every time to render IE mode tab, thus new sessions will not merge if you specify "no-merge" in IE mode site list.

    I suggest keeping the "current window"/the page that contains the links to other sites in Edge mode in order to achieve "no-merge".


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best Regards,

    Shijie Li

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.