cancel
Showing results for 
Search instead for 
Did you mean: 

destroying portal session in browser after closing the browser(without logging off)

former_member190063
Participant
0 Kudos

Hi,

How to destroy the portal session after closing the browser.

Regards,

Karthik.S

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member197472
Active Participant
0 Kudos

One way to force a logoff when the browser is closed would be to import the Masthead iView into Eclipse and add the following Javascript code :

var closing;

window.onload = function() {

     closing=true;

}

window.onunload = function() {

     if(closing) {

          EPCM.raiseEvent("urn:com.sapportals.portal:user", "logoff", "");

     }

}

With this the DSM terminator is called whenever the user leaves the portal for another website or closes the window.

Please check if this works ?

Regards,

Amey

former_member186017
Active Participant
0 Kudos

Hello Karthik,

The portal session should and will be terminated also in case the user close the browser using the browser "X" button.

You can perform a simple test to check that:

1. Make sure you have no opened browser windows

2. Open a new browser window and enter the portal with credentials

3. Close the browser window

4. Open a new browser window and enter the portal

The expected result is that you will have to reauthenticate.

BR,

Nadav.

Former Member
0 Kudos

Hi, Nadav

I am seeing the same problem. Closing the IE browser doesn't kick in the DSM terminator and the WDA program is still running. The bigger issue is that this WDA session runs for an hour because the user put in a wide open query. It bypasses the parameters like rdisp/plugin_auto_logout and PROCTIMEOUT which are set to 20 minutes.

It basically got terminated because they are over the heap limit. Any idea?

Thanks,

Jonathan.

Former Member
0 Kudos

Hi Jonathan,

Can you please check LOGOFF service in SICF ??

If this service is not activated then try to activate and check once.

If above things won't work then please check note 2021994. It might helps.

Regards,

former_member186017
Active Participant
0 Kudos

Hi Jonathan,


In your first memo you refered to portal sessions  that stays active, I now understand you meant backend sessions.


For backend sessions, the dsm terminator should be called since it listens to the unload event and opens a new window for sending the termination requests, if this doesn't happen, check that you don't have a pop-up blocker that blocks the new window from openning and sending the termination requests.


BR,

Nadav.

former_member190063
Participant
0 Kudos

Hello Nadav,

I have done the testing.

I logged into the portal first time. Then suddenly I closed the browser without logging off the portal. After some time when I try to run the portal  url, directly I am getting into portal home page without asking any credentials. This means my portal session is still active? If so, how to destroy the session when closing the IE browser.

former_member186017
Active Participant
0 Kudos

Hi Karthik,

Were there other browser windows opened in the background?

If not, please let me know in which portal version you are at.

BR,

Nadav.

former_member190063
Participant
0 Kudos

Our client desktop contains only IE. So IE is our default browser.Our portal version is EP 7.31  and the SP level is 8.

former_member186017
Active Participant
0 Kudos

Hi Karthik,


7.31SP8 is quite an old version.

It's recomanded to upgrade to a higher version since many fixes were done since then.

My recomandation is to upgrade at least to 7.31 SP12 where fixes were made in that area.


BR,

Nadav.

vijay_kumar49
Active Contributor
0 Kudos

Please check this thread. it may be useful thread


Kindly let me know if you need any more information

anil_kumar259
Active Contributor
0 Kudos

what types of applications you are using in the portal??

If you are using the WDA application there is a system property in the system object " ABAP Http session" please enable that property.

Thanks

anil