as a requirement I have to display a button to the end user (connected through SSO) which has to be able to close the current tab and automatically logout the user, after click on it. It is different from the normal logout button (always available from the main menu).
To do this I tried to add two actions in my button:
-Run Script (js to close the current tab)
What happens is that, after click the button, the logoff page is displayed but the tab is not closed. The problem should be that after the logOff action the script I created is never run. I don't want to change the LogOff Rule (or Web-Session-Return HTML) since the goal is not to change the actual logout mechanism.
Does anyone know how to solve the problem? Is there any way to logout directly from a script and close the tab in the same function?