Number of times a specific user has logged in

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.

Hello!

Clarify please, what value are you going to store in new column? Number of simultaneous logins, or total number of logins?
Alex

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

so if the next User logging in finds that total users with same username are equal to totalNumber then ill throw an error

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.