Hello, I created app where admin wants to see the last login date of users. I did it using “Do every 30 seconds” and updating the lastLoggedIn field of users. I have two dashboards excluding admin. Therefor this is consuming a lot of workload units. As I have 700+ users in my live version who are using the app.

So now I was thinking to log the user out when they are not on the platform. Means every time when user access the platform have to login first and at the time of login I will update there lastLoggedIn field. Or we can use sessions to logout the user by calculating the ideal time (I don’t know how I will implement this).

Here is the app metric for page “Do every xx seconds” currently I updated it 86400(24 hours)

Kindly guide me how I can do it and manage my workload units

Instead of either of above, have you tried the following?

Page is loaded → Update last loggedIn (or last active)
(Preferably on a reusable element like header)

This way you wouldn’t have to log out the user and you do not have to waste WUs on Do when condition.

1 Like

Thanks for your reply @animisha45,

Can you please explain it more clearly how I should implement your idea to save last login date and save my workload units?

This topic was automatically closed after 70 days. New replies are no longer allowed.