Do Logoff
Last updated 8/04/2026
Overview
The Do Logoff event is a server-side event that executes when a user clicks the Logout button in their profile. It allows the application to perform cleanup tasks, save session data, or run any logic required to properly close the user session before the user exits the application.
How it Works
When a user clicks the Logout button:
- The Do Logoff event executes on the server as the last step of the user session.
- Any associated server-side logic runs immediately, ensuring that session-specific data is saved or cleaned up before the application closes the session.
- This event executes every time a user logs out, providing a consistent way to manage session termination.
Use Cases
- Clearing session variables or temporary data
- Logging user logout activity for auditing or analytics
- Finalizing or committing unsaved changes to the database
- Stopping or cleaning up background tasks initiated during the user session