EbrahemSamer
5 months ago
4351
1
General

How to prevent multiple login using the same account on different devices PHP ?

Posted 5 months ago by EbrahemSamer

I am making website and I want the user to login on just one device....

I was thinking to add extra column in the database to set it to "active" when login and "not active" when logout and depend on it at each login process....

Is this good way to do that ... or there is a better and optimized solution ?

Please sign in or create an account to participate in this conversation.