Home > Back-end >  Want to consult a logical problem
Want to consult a logical problem

Time:12-27

Hello everyone a great god
Want to consult a logical problem

When a game login how to prevent others using the packet at the same time login account 1

Such as account login password 1 myself all right now, and then another window to login account password 1 will kick the account off this is normal process operation,

But if other people use the decepticons to send packets at the same time point leading to a successful login to the same login account will appear with an account at the same time online

May I ask you what is the method to prevent?

I currently adopted method is to first when I login account records to a table and a mysql database to give 1

If the login account and password login check and this table to 1 will perform the first kicked off the account,

CodePudding user response:

Record an account login in a very short period of time the number of times greater than a certain value, give warning messages, if still frequent login, direct play offline or titles
  • Related