Skip to main content
1-Visitor
September 24, 2015
Question

How to clear/Log out the user session when the window is closed rather than clicking the Logout button

  • September 24, 2015
  • 2 replies
  • 3217 views

How to clear/Log out the user session when the window is closed rather than clicking the Logout button

    2 replies

    1-Visitor
    September 24, 2015

    Unfortunately there is no way to do this at this time, you will have to depend on the Session timeout setting.

    You could probably do it with a Widget Extension or maybe even code in the Expression Widget, so it would call the logout specifically before the web page unloads.

    1-Visitor
    December 28, 2015

    With a private window, when this one is close, the user session will be cleared / logged out.

    1-Visitor
    December 28, 2015

    I think that is browser's feature though.

    1-Visitor
    December 28, 2015

    It's the same behaviour with Safari, Chrome and Firefox. All the browsers' tabs must be closed. Maybe it's the result of a combination of ThingWorx webapp and browser's cache. If the browser's cache could be always cleared/empty, then closing the window might resolve the problem.