Restrict multiple sessions for web app but allow Native app session
1
We have an existing web app with the user restricted to one web session at a time to avoid concurrent edits. Now we are adding a native mobile app and we have to expect that users will open the app while still logged in on via the desktop (or vice versa). I have observed that if the mobile app calls a microflow it triggers the logic that disables multiple sessions. When this happens one of the sessions is cancelled. There is no log entry. If I am running with debugging, I can see that the process just disappears. We need a mechanism to disable multiple web sessions but allow concurrent native sessions. Is there a way I can build a restriction on web sessions separately from native sessions? I can't see anything on the Session entity that would let me tell whether a session is native or web.