Skip to Content
Author's profile photo Della Brodsky

Why doesn’t my Session Terminate when I Log out from the Portal?

Session termination might not occur if:

you have a page with two or more Application Integration iViews.

2 iView.png

Both iViews load content from the same back-end system.

System1.png

System2.png

That system has the ABAP HTTP Security Sessions Enabled property checked (SAP Note 1717945).

SystemProp.png

This is the first time that content from that back-end system is being pulled since you’ve logged into the portal.

You then perform log out from the portal.

Browsers are getting faster and faster.

In the case of the above scenario response to the first request (for the first iView) may be received after the request to the second iView has been sent:

/wp-content/uploads/2015/12/http1_1_845794.png

As a result – two different values of SAP_SESSIONID_XX cookie, which is used by the same back-end, will be generated:

Cookie1_1.png

Cookie2.png

And logoff from the portal will invalidate only one of them, thus leaving the orphaned session opened in the back-end.

We recommend that you try to avoid having such content.

But if that is impossible to avoid, then the following workaround can be used:

1. under the current page create two (or more: one per each iView) pages

/wp-content/uploads/2015/12/two_pages_845798.png

2. place each iView into a different page

/wp-content/uploads/2015/12/first_page_845799.png

Second page.png

3. on one of the child pages set Isolation Method property to URL (select this option from the drop-down list)

URL.png

4. On the other child page set the Isolation Method property to Embedded (select this option from the drop-down list)

Embedded.png

This way an additional request will be made in the flow for iView wrapped in the page with Isolation Method set to URL.

And that will slow the process down, so the response to that iView from the back-end will arrive later – after the response to the second iView has been sent.

after change.png

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.