on 11-27-2015 2:58 PM
Hi,
How to destroy the portal session after closing the browser.
Regards,
Karthik.S
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.
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.
Please check this thread. it may be useful thread
Kindly let me know if you need any more information
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.