Skip to main content
Version: 11.2

logout

note

This article is about the logout UDB event handler.

logout​

The logout event may be called from web pages developed in Web Designer and processed by a USoft page engine service.

EventApplies toOccurs when
logoutPage objectsAfter each logout action

This event is triggered internally on the global UdbApplication object, from the process() function of the Logout class (usoft.module.server.js), unconditionally at the end of the logout process. No options object is passed with this event.

How to use​

Find or create an Event Listener object with Event Type = logout. Event Listeners are in the Web Designer Controls catalog:

Insert the event listener into the Page object. Insert a callClientScript action into the event listener. Use this action's Script property to code the behaviour that you want to see when the event occurs.

Single sign-on (SSO)​

When SSO is configured, the UdbApplication.logout() function's internal implementation is replaced wholesale: usoft.module.auth.sso.js calls UdbApplication.logout(UdbSSO.ssoLogout), so logout is handled by UdbSSO.ssoLogout, which only redirects the browser to the SSO logout endpoint. This bypasses the Logout class's process() function entirely, so logout never fires when SSO is enabled.