cancel
Showing results for 
Search instead for 
Did you mean: 

2 sessions with 1 Logon on integrated ITS

Former Member
0 Kudos

Hi All,

I migrated an ITS web application from an external ITS to an integrated ITS. The problem is that the system creates two sessions per Logon. (On the external ITS only one session was created). With the command 'logoff' the system only deletes one of the both sessions.

You know more?

Thanks and regards,

OM

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Some further informations:

I just tried to "debug" the application by using java script alerts in the onload-functions.

Each HTML (start.html, frames_cookies.html, zxx-service) is loaded just one time (one Popup per html-file).

I can't find any error in the coding

Regards,

Oliver Merk

thorsten_domsalla
Active Participant
0 Kudos

Hello Oliver,

at first view I don't see any issues in the HTML documents. But, I can see that you are using relative links.

It would be more helpful if you create an HTTP trace (e. g. using HTTPWatch or Ethereal).

What is the URL to start.html? When you put alert()s into the code, can you watch SM4 to find out when each session is created?

Best regards,

T. J. Domsalla

former_member316351
Active Contributor
0 Kudos

Hello Oliver,

Is the two sessions created at the same time and for the same transaction? I suspect that it is actually at different times and a different "click" that results in the second session. If so then the second "click" is probably not specified correctly to "reuse" the original session. Please provide more information for further analysis.

Edgar

Former Member
0 Kudos

hi Edgar,

usually it is the same time, sometimes there is a small difference:

003 USER 172.16.36.169 ZXX 10.37.39 1 Plugin HTTP 4

003 USER 172.16.36.169 ZXX 10.37.38 1 Plugin HTTP 4

What do you mean with "a different click" ?

In the following I give you more informations.

At the beginning a static html is called "start.html". When "onload" the following Java Script Code is called:

str_url = "frames_cookies.html";
newwindow=window.open(str_url, "thewindow", str);

In frames_cookies.html two frames are created:

<frameset rows="100%,0%">
  <frame name="MAIN" src="/sap/bc/gui/sap/its/zxx/"> 
  <frame name="STATIC" src="static.html"> 
<!-- <frame name="TEST" src="http://www.google.de"> -->
</frameset>

If I start the service ZXX directly, then only one session will be created.

If I start the service via the start.html, then two sessions will be created.

If I create 3 frames within the frameset, then also two sessions will be created.

If I delete the Logon-user from the SICF-Service, then I see one Logon-Screen, and 2 sessions are created.

Do you have any ideas? Why is SAP creating 2 sessions?

Thank you for help!

Oliver

athavanraja
Active Contributor
0 Kudos

i tried to simulate your case in my system (WAS 6.40 SP18) and its creating only one session.

which support pack are you on?

Former Member
0 Kudos

I am on WAS6.40 SP16, maybe thats the reason.

Up to now I couldn't solve the problem. If I start the service directly, I also get just one session. Only if I start it via the static start.html then I get 2 sessions.

Do you know in which cases SAP creates a new session? Does it mean that there are 2 Logons when I have 2 sessions?

Thanks and regards!

Oliver

athavanraja
Active Contributor
0 Kudos

if you start the session directly you are getting only one session and only when used with start.html you have the problem?

hope you dont have anything within start.htm which is refreshing the frames or the pages ? may be can you post the compelete code of start.htm and i can try and simulate it in my system to check for similat behaviour?

Former Member
0 Kudos

yes, if I start the service directly then I get only 1 session. Starting via start.html leads to 2 sessions.

In the following you can see the relevant source. Maybe it is caused by the browser ( I am using IE 6.0 ) ?

thanks for support!


<-- Start.html -->

<html>
<HEAD>
	<TITLE> XXX</TITLE>
	<link rel="stylesheet" href="../stylesheet/zxx.css" type="text/css">

<!--  Include JavaScript code	-->
<script language="JavaScript" >

function launch(){

  NVersion    = parseInt(navigator.appVersion);
  BrowserName = navigator.appName;
	
  if ( NVersion >=  4 ) {

	if (BrowserName == "Netscape") {
		setwidth = window.innerWidth;
		setheight= window.innerHeight;
	} else {
		/*
		setwidth = document.body.offsetWidth;
		setheight= document.body.offsetHeight;
		*/
		/* new window = full window if task bar present at botton*/
		setwidth = screen.width - 22; 
		setheight= screen.height - 111;

//		setwidth = screen.width; 
//		setheight= screen.height;

        }
  } else {
	setwidth =800 ;
	setheight=600;
  }
     
  if  (NVersion >=  2 )     {

    var str;
    var str_url;

    str = "tollbar=no";
    str = str + ",width="  + setwidth;
    str = str + ",height=" + setheight;
    str = str + ",status=yes";
    str = str + ",resizable=yes";
    str = str + ",menubar=no"; 
    str = str + ",scrollbars=yes";
    str = str + ",top=0";
    str = str + ",left=0";  

    str_url = "frames_cookies.html";

    newwindow=window.open(str_url, "thewindow", str);
  }
	
  return;
}

</script>

</HEAD>
<BODY onload="javascript:launch();">

<br>
<center>
<p>
<img src="../images/xxxlogo.gif">
<p>
text 
<p>
<b>text</b>
<p>
text
<p>
<a class="font4" href="javascript:window.close();">close</a>
<p>
<br>
<a class="font4" href="javascript:location.reload();">new</a>
</center>

</BODY>
</html>


<!--   FRAMES_COOKIES.HTML -->
<html>
<head>
<TITLE>XXX</TITLE>
</HEAD>

<frameset rows="100%,0%">

      <frame name="MAIN" src="/sap/bc/gui/sap/its/zxx/"> 
      <frame name="STATIC" src="static.html">       
    
</frameset>

</html>


<!--  Static.html -->
<html>
<HEAD>
<TITLE>xxx</TITLE>

<link rel="stylesheet" href="../stylesheet/zxx.css" type="text/css">

<!--  Include JavaScript code	-->
<script language="JavaScript" >

function CookieSet(p_value) {
...