Most Efficient Way To Log ALL User Logouts?

Hey Bubblers,

I am trying to figure out the most efficient and complete way of tracking when users are logged in and logged out of the system. The log in part is easy but finding a catch all way of logging logouts has got me stumped.

I could go to every log out button there is in the app but that won’t capture the log outs that happen when the user closes their browsers.

Is there a way to get Bubble to tell you when a user logs out. Do they have a webhook where they are the sender that allows me to build a back end receiver webhook to log every time the user logs out?

If that does not exist, is there another way to capture logouts efficiently.

thanks,

DJ

The only way I know to do this is:

  1. Create a field in you user’s database called “Last log” (Date type).
  2. In your header, menu or in any other reusable element that will be displayed in every page, create a workflow that runs every minute.
  3. This workflow will keep changing the “Last log” to “Current Date/time”.

So if user’s “Last log” is older then 5 minutes, you know he left your site.