69
Views
2
Comments
Only one session at a time for a same credential? Reactive
Question
Application Type
Reactive

Hi all, 

How to avoid concurrent user login? If a user logged in, we should not allow one more user to login.

I tried with Client variable, but not able to get the session id.  

2023-04-06 11-24-23
Paulo Zacarias

Hi K C S, 

There's no session id (as we know it from the Traditional web) in the reactive applications.

That's why when you try to use the GetSessionId server action, it won't retrieve the session id.

Based on your requirement, I think you will need to fetch the user id that is trying to log in and then with that user id, perform a logout. And only after this step, log in with the same user id. 

Not sure if this will fulfil your requirement, so give it a try. 

Regards, 

PZ

2024-08-11 13-17-57
Kumar Chandrasekaran

@K C S You can try the below forge component,

https://www.outsystems.com/forge/component-overview/17561/no-concurrent-login

If you have not got a solution.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.