I have allowed multiple logins for users in my app set to 5. Lets say i have logged in from 2 browsers and now i am logging in from other location. Is there an easy 1 liner way of determining that this user is also logged in twice?
Bascially what i want is per user level allowed login limits so i will extend the users table to have a per user login count.
I was planning to save totalNumber of logins allowed per user and assumption was that number of users loggedin at a given time i can get from backendless somewhere and i dont have to maintain it myself
There is no way to get total number of current logins for a particular user. But if you’ve enabled “multiple logins” feature - then an exception would be thrown automatically when reaching the limit.