Log Out Other User Sessions

When a user is logging in there is a condition ‘Log Out Other User Sessions’ and I’m unsure how to place this in the Log In Workflow.

My Log In Workflow currently flows like this:

  1. Log the user in.
  2. Reset inputs.
  3. Hide pop login.

Do I put the ‘Log Out Other User Sessions’ before I log the user in or do I put it after the user has logged in? At which part of the flow do I add this condition?

Thanks
Al.

Log out other user sessions will logout all users from your database. The action you should use is Log the user out

From the documentation :

This action lets you log out all sessions of the current user, except the one where the user triggers this action.

So you should be good to place this action wherever you want. Before or after, doesn’t matter.

EDIT, actually it does matter. You should run the action after logging in the user. See 2 posts below for explanation

No, this has nothing to do with other users sessions.

“Other user’s sessions” !/! “Other users sessions”

1 Like

The user should be logged in before using this action, otherwise it is not clear which user (since it uses current user).

1 Like

Yes indeed you’re right, in order to properly log out other sessions the user will need to be logged in.
So yeah the order infact matters and the action needs to be executed AFTER logging in the user

1 Like

Thanks for helping me out.

Al.

1 Like

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