onLogout

Description

Fires after the user logs in.

Fires when the user tries to logout. Variables in the 'e' object include:

e.logoutSucceeded

either .t. or .f. depending on whether the user was successfully logged out or not.

e.tmpl

definition of the UX component

e.javascript

Your event handler can set 'e.javascript' for any Javascript you want to execute (if full page reload after logout is not set to true).

e._state

(optional) a dot variable used to set/create state variables.

Setting State Variables 

State variables can be set in the onLogout event. State variables can be added to the e._state variable.

e._state.logoutTime = time("dd/MM/yyyy 0h:0m am", now())
If a full refresh of the UX Component is done when the user logs out, state variables set in the onLogout event will not be retained.