Skip to main content
1-Visitor
April 21, 2020
Solved

Login button functionality

  • April 21, 2020
  • 2 replies
  • 1136 views

Hi,

We wanted to restrict the users from logging in from multiple browsers using same username. For eg: if a user named 'abc' logs in to thingworx through form login from his local browser(with remote ip) and logins to remote desktop and logins with same username 'abc' through form login. There will be 2 sessions for same user which might mess the services and their output flow binded in mashups.

 

So, Is there a way on Submit button in Form Login page, can we check whether the user is already active in any browser and if so, we should restrict login and give a message 'To continue, please logout from other browser'.

 

Or, on click of Submit button in form login page, is it possible to  insert a entry in SQL DB through service in a temp table which I will create for storing the session info.

 

Thanks,

Shalini V.

Best answer by cmorfin

Hi @svisveswaraiya_285988 

 

I don't know that you can customize the Submit button in the FormLogin page ... maybe others have better idea, however the Restrict the number of concurrent logged in user sessions parameter of the User Management Subsystem allows to enforce only one session per user. The new session invalidate the previous ones. Maybe that can help to some extent.

 

Christophe

2 replies

cmorfin19-TanzaniteAnswer
19-Tanzanite
April 21, 2020

Hi @svisveswaraiya_285988 

 

I don't know that you can customize the Submit button in the FormLogin page ... maybe others have better idea, however the Restrict the number of concurrent logged in user sessions parameter of the User Management Subsystem allows to enforce only one session per user. The new session invalidate the previous ones. Maybe that can help to some extent.

 

Christophe

Support
May 7, 2020

Hi @svisveswaraiya_285988.

 

If you have found a solution for your issue, please post it here and mark it as the Accepted Solution for the benefit of others on the community.

 

Regards.

 

--Sharon