same user can't login with different devices corona ?

0 votes

In my game user have to first login and then he/she can play the game.

for login i used the app42 api and i am very happy with this to develop.

But the problem is that how can we make the same user (username and password) can not login to two or more separate devices. If one user logged in with his valid username and password then another can not logged in with same details.

So please help me to resolve these problem.

asked Apr 4, 2014 in Discuss & suggest API by imtiyaz (45 points)

1 Answer

+1 vote

 Once use authentication is success, you will get a sessionId too in User object. You can use session service and set a flag in the session attribute after login (See this) against that sessionId.

If you want to check user is already logged in or not you can check it from session service using getAttribute method (See this

Make sure you call logout method on user service once use is logged out/close the app so that he can login from other device.


answered Apr 4, 2014 by ajay123 (899 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