In my application I have a security area where registered user can use an administratioon panel.
I want to prevent that a registered user can share his password to friends and have a user loggedin from multiple locations.
For example:
user1 login and use the app;
user2 login with the credentials of user1, so now I have user1 loggedin from New York and from Los Angeles.
I wouild like to make a system that logout user1 is another user logs in with the credentials of user1. So one user-one connection.
How could I implement a solutions? any idea?