I am currently using the following Forge component to prevent concurrent logins: https://www.outsystems.com/forge/component-documentation/17561/no-concurrent-login-o11/0
At present, when a user is logged in on Device 1 and attempts to log in again on Device 2, the alert popup is displayed on Device 1. However, I would like to change this behavior so that the alert is shown on Device 2 instead.
Required Behavior
If a user is already logged in on Device 1 and attempts to log in from Device 2, a popup should appear on Device 2 with the message: “An active session already exists. Do you want to continue login here?”
If the user clicks “Yes”:
The session on Device 1 should be logged out
The login on Device 2 should be allowed
If the user clicks “Cancel”:
The login on Device 2 should be blocked
The session on Device 1 should remain active
Hello,
I’m not sure this is possible. The code runs in the session on Device A, so the pop-up will only appear there, as Device A is the first to trigger it. Additionally, Device B cannot see the changes that occur in Device A’s session. For example, if Device C tries to log in after Device A has logged out, the message will appear on Device B. In short, the first device to trigger the action is the one that will receive the pop-up.
Hi @Tamilselvan M,
You’ve hit a fundamental limitation of the “No Concurrent Login (O11)” Forge component, not a configuration gap, and unfortunately your desired behavior cannot be achieved by modifying the component as‑is.
The component is designed around this rule:
“The currently active session is the one that detects the conflict.”
So when:
What happens internally is:
This is by design and confirmed by the component author / community.
Device 2 has no knowledge or control over Device 1’s live UI session, so it cannot display a popup on itself using this approach.
However, you can implement your own solution
You need a custom concurrent‑session design where the decision happens during login, not after.
Architecture:
Create an entity like:
UserSession: This entity is the single source of truth.
During login on Device 2:
Auto-logout Device 1
On each request / screen start in Device 1:
Benefits of this approach
Hope this helps,
Cheers.
Saugat