Small program and two of the same APP software, to implement the following login limit requirements:
1, the same cell phone, small program, and the APP with a different account to login at the same time, this is surely can)
2, the same cell phone, small programs and APP with the same account to login at the same time
3, different phones, one account can't login at the same time, the phone A account with 1 after landing, then the phone with account login, 1 B phone A will be offline
Filter is currently doing so:
Judge token (after the success of the token is landing, storage into the redis)
The question now is:
1, the same cell phone, small procedures and APP with the same account login at the same time, the previous login will be offline (because the token inconsistent)
CodePudding user response:
I now is such a demand:1, let the IOS or android mobile end, see if I can get to the machine of a unique identifier
2, the logo is not affected by wifi, mobile network factors change
3, can have the unique identification?
The great spirit consult,
CodePudding user response:
Now front iOS feedback, if the WiFi and mobile network switching, Mac address may change, are there any great god answer??????CodePudding user response:
no great god to answer, slipped slipped away, this is too embarrassedCodePudding user response:
I also want to know what is the good way, because involves WeChat small programs can access to the device information is less poor1, the same cell phone, small program, and the APP with a different account to login at the same time, this is surely can)
2, the same cell phone, small programs and APP with the same account to login at the same time:
App can get a lot of information to, how to confirm with this small program is the same equipment?
Assume that the user use the app first login:
1> After the login request can determine if access to a file path
2> Before assuming that return path address, said in an app, or small application login then to find the file, assuming that can find is in the same cell phone
Assuming that returns an empty, said no login before operation, then create a file stored in the machine, and will save the location and name of randomly (name) tell the server
3> Then a small program that the user login, the request log file location and name, according to these information to find the file, if found it is in the same cell phone, let him login
3, different phones, one account can't login at the same time, the phone A account with 1 after landing, then the phone B with 1 landing account, then the phone A will now be offline:
Likewise assume a, b two mobile phones:
User login 1 a device, create a file
User login 1 b equipment small programs, search for files can't find said is different phones
With wifi and network MAC address randomness is too big, not as a logo
Key point is that the ios, android, small procedures, can operate at the same time things
If for identification of the small program for less than most equipment information can make you melt
You can also consider the session, cookies
Above, I also didn't tried just put forward a train of thought, might not work, because I didn't do contain small application login judgment, if do not have a small application login judgment, that there are many ways to do
CodePudding user response:
If find a good way! Hope you can stick out, reference this to me, rise up positionCodePudding user response:
The