How to prevent user for Multi login at same time - Session is not reliable

0 votes
we can check session to know that the user is logged in. but

if app not close normal way or disconnect internet then close app, session not remove from server and app cant send anything to server and cant change on it , so user cant login again because session or every other parameter not changed on server.

i search in forum and not find any correct answer for this problem.

main problem is that we cant never be sure user logged out and change session attribute or update json document.
asked Jan 12, 2018 in Unity by happybabygame2020 (11 points)
edited Jan 15, 2018 by happybabygame2020

1 Answer

0 votes

HI,

 

There are multiple ways to manage the user session, one you already described by saving the attribute. Second, you can use admin key to get the user session like if the user session exists on the server then disable that session and re-create a new one. 

How and What role of admin key for getting the user session? 

Ans: You can write server-side custom code where you inject the admin key and based on username, you can get the session on the server. Here why we are suggesting custom code because enabling admin key on the application side is not good as any potential programmer can get your admin key by debugging the code. 

Please find below links which help you to integrate the same: 

 

In case you need any other help, please feel free to let us know. 

 

Regards,

Himanshu Sharma  

answered Jan 15, 2018 by hs00105 (2,005 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...