How to detect when user is Logging out?

When a user using POS tries to log out we want to check if the POS session is closed or not and if the POS session is not closed we want to prevent the user from logging out.

How can we detect when a user is Logging out?

You can use This

1 Like

Thanks for the link.

But unfortunately it only has support for 3 events. I want to stop a user from logging out if the POS session is not closed.

Is there any event that fires before Logout?

The login and logout history is stored in a doctype called “Activity Log”.