Close popover
Giuseppe Acuto (Giuseppe)
Knowledge Expert SA

Knowledge Expert SA
Giuseppe Member since 2018 6 posts
Knowledge Expert SA
Posted: December 12, 2018
Last activity: February 15, 2019

LogOff and close Tab automatically

Hi all,

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?

Thanks in advance.

Pega Platform Low-Code App Development
Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.