How to control php login

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
weixin268
Forum Newbie
Posts: 15
Joined: Mon Feb 17, 2014 12:53 am

How to control php login

Post by weixin268 »

php how to limit login, the problems is one account can login many times at different locations. Therefore, one account can be shared. Thanks!
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: How to control php login

Post by Celauran »

Keep track of logins on the server. Whenever a user logs in, check for existing logins from the same user and invalidate them.
Post Reply