What are the benefits of logging on to the same account for two devices and logging out of another device account? Thank you! What are the benefits of logging on to the same account for two devices and logging out of another device account? Thank you!
Reply: What are the benefits of logging on to the same account for two devices and logging out of another device account? Thank you!
There is no special benefit, but it depends entirely on the needs. There are some reasons for the number theft on the upstairs, but it is not the most critical (for example, you can determine the number theft Based on the ip address location ).
The exclusive check for account logon consumes resources. Its core principle is no different from that of "Who is online. This is not a burden on chat software, but it usually has no special significance for other applications.
Before using this feature, you should ask yourself a question: if two clients have logged on to the same account at the same time, what will happen to the business logic? Does this impact cause exceptions in the business logic?
In fact, it is common to log on to the same account from multiple clients, especially for websites. For example, if A user prefers to browse the website in browser A, and he receives an email from the website, the url in the mailbox will be opened in the default browser set by the system. This is common, but if you find that you have been kicked out and logged on browser A, you are sure you have been running.
Chat software does not like this, because it has an impact, because data needs to be forwarded to multiple terminals to increase the pressure, and a good point-to-point chat has become a three-party conversation, so it is so uncomfortable.
I feel that you cannot find your answer when you ask this question.
We recommend that you change the problem and briefly describe the business scenario. If it is a third-party product, you can also clearly describe it.
For example, why can't two devices log on to the same account? For reference only.
Prevents unauthorized account theft
There is a very practical scenario where users operate on the same content on both ends.
There is no such thing as saying that multiple clients are online at the same time. For clients, there is no difference. for servers, It is a headache, for example:
1. Data Synchronization: ABC has all logged on to your APP. A's data is generated in January, B's data is generated in February, and C's data is generated in March, the latest data was generated in April. How can we synchronize the data to three ends of ABC? (of course, you can choose full synchronization, but is it too Low ?), And save the updated status.
2. If the three ends modify one piece of data at the same time, which of the following prevails, do not think that the time stamp can solve the problem? Can I handle high concurrency?
3. How can I add data to the three ends at the same time?
And so on.
In this way, it is much easier to find a single device login process.