Home > Mobile >  Land constraints, a great god come in
Land constraints, a great god come in

Time:10-31

Now have such functional requirements:
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 embarrassed

CodePudding 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 poor
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:
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 position

CodePudding user response:

The
reference 5 floor So 灬 low-key response:
if you find a good way! Hope you can stick out, reference this to me, rise up position


1, yes, now the front there is feedback, whether the IP and MAC address, are likely to change with wifi and mobile network, so the feedback is very difficult to do it,
2, just now is whether it is a small program or APP, can pass a token, then compare, lead to the same cell phone, small programs and APP will generate one landed before, after a landing again, give referrals, before a (more than one mobile phone not to mention the)
So still looking for a way,

CodePudding user response:

refer to 6th floor Cansluck response:
Quote: refer to fifth floor So 灬 low-key response:

If find a good way! Hope you can stick out, reference this to me, rise up position


1, yes, now the front there is feedback, whether the IP and MAC address, are likely to change with wifi and mobile network, so the feedback is very difficult to do it,
2, just now is whether it is a small program or APP, can pass a token, then compare, lead to the same cell phone, small programs and APP will generate one landed before, after a landing again, give referrals, before a (more than one mobile phone not to mention the)
So also looking for a method,


The way that you can have a try, I think! This contains small programs is difficult, you can challenge it

CodePudding user response:

At the end of the day is to get similar uuid problem, now there is no perfect solution,

CodePudding user response:

When there are may not start to generate a unique ID, stored in a public directory access, didn't do a small program, don't know whether small programs to access the catalog

CodePudding user response:

Is the only sign equipment, can't do absolute UUID in theory, but can be applied to most of the scene,
An article to solve your problem:
iOS the best way to obtain the device unique identifier
  •  Tags:  
  • iOS
  • Related