Force close users' sessions - how to?

Hello guys… In Bubble there’s a feature that allows you to close all user’s active sessions from a server action.

Is there a way to accomplish this in Wappler - nodejs?

I don’t know if this is a built in capability or maybe it can be accomplished by deleting a session record directly in redis (when using redis for session handling) or in the server (when using local session storage)

Thanks a lot!

I don’t understand the question. Is it possible to give an example of what you want to achieve?

Could you just use the user logout server connect action? I believe that removes the active user session.

1 Like

Hello Ben, sure:

In bubble, I’ve use the following sequence on “user login”:

  1. login (validate email/user and password).
  2. close all previous user sessions. (this way I can limit each user to only be logged in in one device at a time).

I hope this makes sense.

Thank you!

I have the same doubt, is possible to do this?