CN108833378A - A kind of processing method and system that more account numbers log in - Google Patents
A kind of processing method and system that more account numbers log in Download PDFInfo
- Publication number
- CN108833378A CN108833378A CN201810544069.9A CN201810544069A CN108833378A CN 108833378 A CN108833378 A CN 108833378A CN 201810544069 A CN201810544069 A CN 201810544069A CN 108833378 A CN108833378 A CN 108833378A
- Authority
- CN
- China
- Prior art keywords
- token information
- account
- terminal
- information
- logs
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0807—Network architectures or network communication protocols for network security for authentication of entities using tickets, e.g. Kerberos
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/12—Applying verification of the received information
Abstract
The invention discloses a kind of processing method that more account numbers log in, the method includes:Server logs in account according to first terminal, generates and stores the first Token information, be sent to first terminal;First terminal stores the first Token information, and sends a checking solicited message to the server every a predetermined period, which includes the first Token information;After second terminal logs in successfully, server logs in account according to, generates and store the 2nd Token information, is sent to the second terminal, deletes the first Token information;Second terminal stores the 2nd Token information;First Token information is compared by server with the 2nd Token information, if inconsistent, sends verification failure information to the first terminal;First terminal obtains the verification failure information, exits and logs in, whether the multiple terminals of real-time judge are logged in using same account number, and exit Entered state in time, are retained only one terminal and are in Entered state.
Description
Technical field
The invention belongs to field of communication technology, in particular to processing method and system that more account numbers log in.
Background technique
In current mobile Internet field, most APP (Application, application software) more make in acquisition
When with permission, it is required to user and logs in.The mode that user logs in APP is generally two kinds:Username and password logs in, third
Side (such as passing through the modes such as QQ, wechat and microblogging) logs in.Currently, part APP allows multiple APP clients to use same APP
Account number logs in simultaneously.And part APP can only allow an APP client to log in, when other when logging in using same APP account number
When APP client is logged in using same APP account number, the APP account logged in has corresponding prompt information.
In the prior art, for the primary APP application program for only an APP client being allowed to log in, using passive approach
Detect whether its APP account repeats to log in.When same APP account number is logged in by the 2nd APP client, which will not be stood
The first APP client is exited, when server sends request to the APP account number in the first APP client, is sentenced by server
Whether the APP account number of breaking repeats to log in, and server is verified, and judges that the APP account number is logged in the 2nd APP client,
Notification information is sent to the first APP client.First APP client end receives the APP account number by the 2nd APP client
After holding the information logged in, the first APP client is exited.Whether the embodiment is more passive, cannot repeat to APP account number in real time
It logs in and makes timely judgement, affect the experience of user.
Therefore, how above-mentioned technical problem is solved, is brought convenience to user, become urgent problem to be solved.
Summary of the invention
In consideration of it, the purpose of the present invention is to provide a kind of processing method and system that more account numbers log in, real-time judge is more
Whether a terminal is logged in simultaneously using same account number, and exit Entered state in time, is retained only one terminal and is in and logs in
State.
According to foregoing invention purpose, the present invention provides a kind of processing method that more account numbers log in, and makes applied to multiple terminals
Same server is logged in simultaneously with same account, the method includes:
After S1, first terminal log in successfully, the server generates according to account is logged in and stores the first Token
Information sends the first Token information to the first terminal;
S2, the first terminal store the first Token information, and send checking request letter every a predetermined period
For breath to the server, the checking solicited message includes the first Token information;
S3, after second terminal logs in successfully, the server logs in account according to, generates and stores second
Token information sends the 2nd Token information to the second terminal, deletes the first Token information;
S4, the second terminal store the 2nd Token information;
S5, the server obtain the first Token information in the checking solicited message, and by the first Token
Information is compared with the 2nd Token information, if inconsistent, sends verification failure information to the first terminal;
S6, the first terminal obtain the verification failure information, and exit and log in.
Preferably, the account that logs in includes logging in account number and password.
Preferably, the step S1 further includes:
The corresponding relationship of account Yu the first Token information is logged in described in storing in the server.
Preferably, the step S3 further includes:
The corresponding relationship of account Yu the 2nd Token information is logged in described in storing in the server.
Preferably, the checking solicited message at least further includes described logging in account;
The step S6 further includes:
According to the account that logs in the checking solicited message, account pair is logged in described in the server acquisition
The 2nd Token information answered;
The first Token information is compared with the 2nd Token information, if inconsistent, verification sent and loses
Information is lost to the first terminal.
According to foregoing invention purpose, the present invention provides a kind of processing system that more account numbers log in, and makes applied to multiple terminals
Same server, including the first generation module, the first memory module, request module, second are logged in simultaneously with same account
Generation module, authentication module exit module and the second memory module, wherein
First generation module, for according to account is logged in, generating and storing after first terminal logs in successfully
First Token information sends the first Token information to first memory module;
First memory module, for storing the first Token information;
The request module is used for every a predetermined period one checking solicited message of transmission to the authentication module, described
Checking solicited message includes the first Token information;
Second generation module, for logging in account according to described, generating simultaneously after second terminal logs in successfully
It stores the 2nd Token information, sends the 2nd Token information to second memory module, and delete the of the storage
One Token information;
The authentication module, for obtaining the first Token information in the checking solicited message, and by described first
Token information is compared with the 2nd Token information, if inconsistent, sends a verification failure information to exiting module;
Described to exit module, for being sent according to the authentication module of acquisition the verification failure information, described first eventually
End, which is exited, to be logged in;
Second memory module, for storing the 2nd Token information.
Preferably, first generation module is also used to store the account that logs in and believes with the first Token
The corresponding relationship of breath.
Preferably, second generation module is also used to store the account that logs in and believes with the 2nd Token
The corresponding relationship of breath.
Preferably, the checking solicited message at least further includes described logging in account;
The authentication module is also used to according to the account that logs in the checking solicited message, is logged in described in acquisition
The corresponding 2nd Token information of account, and the first Token information is compared with the 2nd Token information,
If inconsistent, a verification failure information is sent to described and exits module.
Compared with prior art, processing method and system that more account numbers provided by the invention log in have below beneficial to effect
Fruit:Whether the multiple terminals of real-time judge log in same server using same account number simultaneously, and exit Entered state in time, to protect
It stays only one terminal to be in Entered state, effectively prevents multiple terminals in the prior art and using same account number while logging in
When, first terminal is passively exiting log on request to server proposition, can just exit the technical issues of logging in, bring more to user
Good experience.
Detailed description of the invention
Below by clearly understandable mode, preferred embodiment is described with reference to the drawings, to a kind of place that more account numbers log in
Above-mentioned characteristic, technical characteristic, advantage and its implementation of reason method and system are further described.
Fig. 1 is a kind of flow chart for the processing method that more account numbers log in of the present invention;
Fig. 2 is a kind of composed structure schematic diagram for the processing system that more account numbers log in of the present invention.
Specific embodiment
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, Detailed description of the invention will be compareed below
A specific embodiment of the invention.It should be evident that drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing, and obtain other embodiments.
To make simplified form, part related to the present invention is only schematically shown in each figure, they are not represented
Its practical structures as product.In addition, there is identical structure or function in some figures so that simplified form is easy to understand
Component only symbolically depicts one of those, or has only marked one of those.Herein, "one" is not only indicated
" only this ", can also indicate the situation of " more than one ".
As shown in Figure 1, according to one embodiment of present invention, a kind of processing method that more account numbers log in is applied to multiple
Terminal logs in same server using same account, the method includes:
After S1, first terminal log in successfully, the server generates according to account is logged in and stores the first Token
Information sends the first Token information to the first terminal;
S2, the first terminal store the first Token information, and send checking request letter every a predetermined period
For breath to the server, the checking solicited message includes the first Token information;
S3, after second terminal logs in successfully, the server logs in account according to, generates and stores second
Token information sends the 2nd Token information to the second terminal, deletes the first Token information;
S4, the second terminal store the 2nd Token information;
S5, the server obtain the first Token information in the checking solicited message, and by the first Token
Information is compared with the 2nd Token information, if inconsistent, sends verification failure information to the first terminal;
S6, the first terminal obtain the verification failure information, and exit and log in.
First terminal use logs in account game server, and the account that logs in includes login account and close
Code.After first terminal logs in successfully, server acquisition logs in account, generates first according to the account that logs in
Token information stores the first Token information, and sends the first Token information to the first terminal.The present invention
A specific embodiment, log in the corresponding relationship of account Yu the first Token information described in the server storage.
The first terminal obtains the first Token information, and stores the first Token information.Described first eventually
End sends a checking solicited message to the server every a predetermined period, and the checking solicited message includes the first Token
Information.For example, every 30 seconds to the server authentication solicited message.A specific embodiment of the invention, the checking request
Information logs in account described at least further including.If current time only has first terminal to log in successfully, the server
It obtains in the checking solicited message and logs in account and the first Token information, and looked into according to the account that logs in
Ask the first Token information of the corresponding server storage.At this point, because only that first terminal logs in success, so described test
The first Token information that the first Token information in card solicited message is stored with the server is consistent, and described first eventually
End is constantly in the state logged in.
Second terminal logs in the server using the same account that logs in.After the second terminal logs in successfully, institute
State server and obtain this and log in account, log in account according to described, generate the 2nd Token information, store this second
Token information sends the 2nd Token information to the second terminal.First stored in the server is deleted simultaneously
Token information.A specific embodiment of the invention, the server storage described in log in account and described second
The corresponding relationship of Token information.The second terminal stores the 2nd Token information.
The server obtains the first Token information in the checking solicited message, and by the first Token information
It is compared with the 2nd Token information, if inconsistent, sends verification failure information to the first terminal.Specifically,
The server obtains in the log on request information and logs in account and the first Token information.Account is logged according to described
Number information inquires corresponding 2nd Token information.The first Token information is compared with the 2nd Token information,
If inconsistent, verification failure information is sent to the first terminal.The first terminal obtains the verification failure information, root
According to the verification failure information, Entered state is exited.
According to the technical solution, judge whether multiple terminals using same account number while logging in same server, energy in time
It is enough timely and effectively to exit Entered state, so that only one terminal is retained Entered state, brings better experience to user.
As shown in Fig. 2, one embodiment of the invention, a kind of processing system that more account numbers log in, make applied to multiple terminals
Same server, including the first generation module 20, the first memory module 21, request module 22, are logged in same account
Two generation modules 23, exit module 25 and the second memory module 26 at authentication module 24, wherein
First generation module 20, for according to account is logged in, generating and depositing after first terminal logs in successfully
The first Token information is stored up, sends the first Token information to first memory module;
First memory module 21, for storing the first Token information;
The request module 22, for sending a checking solicited message to the authentication module, institute every a predetermined period
Stating checking solicited message includes the first Token information;
Second generation module 23, for logging in account according to described, generating after second terminal logs in successfully
And the 2nd Token information is stored, the 2nd Token information is sent to second memory module, deletes the of the storage
One Token information;
The authentication module 24, for obtaining the first Token information in the checking solicited message, and by described first
Token information is compared with the 2nd Token information, if inconsistent, sends a verification failure information to exiting module;
Described to exit module 25, for being sent according to the authentication module of acquisition the verification failure information, described first
Terminal, which exits, to be logged in;
Second memory module 26, for storing the 2nd Token information.
In first generation module, after first terminal logs in successfully, acquisition logs in account, is stepped on according to described
Land account generates the first Token information, stores the first Token information, and send the first Token information extremely
First memory module.A specific embodiment of the invention, first generation module also store described in log in account
With the corresponding relationship of the first Token information.The account that logs in includes logging in account number and password.
First memory module receives the first Token information that first generation module is sent, and stores described the
One Token information.
The request module sends a checking solicited message to the authentication module every a predetermined period, and the verifying is asked
Seeking information includes the first Token information.For example, sending checking solicited message to the authentication module every 30 seconds.Of the invention
One specific embodiment, the checking solicited message at least further include described logging in account.
In second generation module, when second terminal using it is same log in account and log in successfully after, obtaining should
Account is logged in, account is logged according to described, generates the 2nd Token information, store the 2nd Token information, send
The 2nd Token information is to second memory module.The first Token letter of the first generation module storage is deleted simultaneously
Breath.A specific embodiment of the invention logs in account and the 2nd Token described in second generation module storage
The corresponding relationship of information.Second memory module stores the 2nd Token information.
The first Token information is compared by the authentication module with the 2nd Token information, if inconsistent,
Verification failure information is then sent to the first terminal.Specifically, the authentication module obtains in the log on request information
Log in account and the first Token information.Account is logged according to described, account corresponding is logged in described in inquiry
Two Token information, and the first Token information is compared with the 2nd Token information, if inconsistent, send
One verification failure information exits module to described.The module that exits obtains the verification failure information, is lost according to the verification
Information is lost, the first terminal exits Entered state.
It according to the technical solution, realizes and judges whether multiple terminals using same account number while logging in time, and in time
Entered state is exited, retains only one terminal and is in Entered state, bring better experience to user.
In conclusion the present invention realizes and judges whether multiple terminals using same account number while logging in time, and in time
Entered state is exited, retains only one terminal and is in Entered state, bring great convenience to user.
It should be noted that above-described embodiment can be freely combined as needed.The above is only of the invention preferred
Embodiment, it is noted that for those skilled in the art, in the premise for not departing from the principle of the invention
Under, several improvements and modifications can also be made, these modifications and embellishments should also be considered as the scope of protection of the present invention.
Claims (9)
1. a kind of processing method that more account numbers log in logs in same service using same account applied to multiple terminals simultaneously
Device, which is characterized in that the method includes:
After S1, first terminal log in successfully, the server generates and stores the first Token information according to account is logged in,
The first Token information is sent to the first terminal;
S2, the first terminal store the first Token information, and send a checking solicited message extremely every a predetermined period
The server, the checking solicited message include the first Token information;
S3, after second terminal logs in successfully, the server logs in account according to, generates and stores second
Token information sends the 2nd Token information to the second terminal, deletes the first Token information;
S4, the second terminal store the 2nd Token information;
S5, the server obtain the first Token information in the checking solicited message, and by the first Token information
It is compared with the 2nd Token information, if inconsistent, sends verification failure information to the first terminal;
S6, the first terminal obtain the verification failure information, and exit and log in.
2. the processing method that more account numbers as described in claim 1 log in, which is characterized in that the account that logs in includes stepping on
Land account number and password.
3. the processing method that more account numbers as described in claim 1 log in, which is characterized in that the step S1 further includes:
The corresponding relationship of account Yu the first Token information is logged in described in storing in the server.
4. the processing method that more account numbers as claimed in claim 3 log in, which is characterized in that the step S3 further includes:
The corresponding relationship of account Yu the 2nd Token information is logged in described in storing in the server.
5. the processing method that more account numbers as claimed in claim 4 log in, which is characterized in that the checking solicited message is at least also
Account is logged in including described;
The step S6 further includes:
It is corresponding that account is logged according to the account that logs in the checking solicited message, described in the server acquisition
2nd Token information;
The first Token information is compared with the 2nd Token information, if inconsistent, verification sent and unsuccessfully believes
It ceases to the first terminal.
6. a kind of processing system that more account numbers log in logs in same service using same account applied to multiple terminals simultaneously
Device, which is characterized in that including the first generation module, the first memory module, request module, the second generation module, authentication module, move back
Module and the second memory module out, wherein
First generation module, for according to account is logged in, generating and storing first after first terminal logs in successfully
Token information sends the first Token information to first memory module;
First memory module, for storing the first Token information;
The request module, for sending a checking solicited message to the authentication module, the verifying every a predetermined period
Solicited message includes the first Token information;
Second generation module, for logging in account according to described, generating and store after second terminal logs in successfully
2nd Token information, transmission the 2nd Token information to second memory module, and delete the first of the storage
Token information;
The authentication module, for obtaining the first Token information in the checking solicited message, and by the first Token
Information is compared with the 2nd Token information, if inconsistent, sent a verification failure information to described and is exited module;
Described to exit module, for being sent according to the authentication module of acquisition the verification failure information, the first terminal move back
It logs in out;
Second memory module, for storing the 2nd Token information.
7. the processing system that more account numbers as claimed in claim 6 log in, which is characterized in that first generation module is also used
The corresponding relationship of account Yu the first Token information is logged in described in the storage.
8. the processing system that more account numbers as claimed in claim 7 log in, which is characterized in that second generation module is also used
The corresponding relationship of account Yu the 2nd Token information is logged in described in the storage.
9. the processing system that more account numbers as claimed in claim 8 log in, which is characterized in that the checking solicited message is at least also
Account is logged in including described;
The authentication module is also used to according to the account that logs in the checking solicited message, logs in account number described in acquisition
The corresponding 2nd Token information of information, and the first Token information is compared with the 2nd Token information, if not
Unanimously, then it sends a verification failure information and exits module to described.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810544069.9A CN108833378A (en) | 2018-05-31 | 2018-05-31 | A kind of processing method and system that more account numbers log in |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810544069.9A CN108833378A (en) | 2018-05-31 | 2018-05-31 | A kind of processing method and system that more account numbers log in |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108833378A true CN108833378A (en) | 2018-11-16 |
Family
ID=64147111
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810544069.9A Pending CN108833378A (en) | 2018-05-31 | 2018-05-31 | A kind of processing method and system that more account numbers log in |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108833378A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111327574A (en) * | 2018-12-14 | 2020-06-23 | 英业达科技有限公司 | Single machine login system allowing network address change and method thereof |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103069741A (en) * | 2011-08-17 | 2013-04-24 | 华为技术有限公司 | Credential authentication method and single sign-on server |
WO2015180589A1 (en) * | 2014-05-29 | 2015-12-03 | 阿里巴巴集团控股有限公司 | Login method for terminal device, terminal device and cloud server |
CN107196949A (en) * | 2017-06-12 | 2017-09-22 | 环球智达科技(北京)有限公司 | The system for limiting same user account registration terminal quantity |
CN107317813A (en) * | 2017-06-30 | 2017-11-03 | 北京奇虎科技有限公司 | Terminal logs in method and system |
-
2018
- 2018-05-31 CN CN201810544069.9A patent/CN108833378A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103069741A (en) * | 2011-08-17 | 2013-04-24 | 华为技术有限公司 | Credential authentication method and single sign-on server |
WO2015180589A1 (en) * | 2014-05-29 | 2015-12-03 | 阿里巴巴集团控股有限公司 | Login method for terminal device, terminal device and cloud server |
CN107196949A (en) * | 2017-06-12 | 2017-09-22 | 环球智达科技(北京)有限公司 | The system for limiting same user account registration terminal quantity |
CN107317813A (en) * | 2017-06-30 | 2017-11-03 | 北京奇虎科技有限公司 | Terminal logs in method and system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111327574A (en) * | 2018-12-14 | 2020-06-23 | 英业达科技有限公司 | Single machine login system allowing network address change and method thereof |
CN111327574B (en) * | 2018-12-14 | 2022-05-06 | 英业达科技有限公司 | Single machine login system allowing network address change and method thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109815656A (en) | Login authentication method, device, equipment and computer readable storage medium | |
CN104348822B (en) | A kind of method, apparatus and server of internet account number authentication | |
CN103139200B (en) | A kind of method of Web service single-sign-on | |
CN105577691B (en) | A kind of safety access method and server | |
CN106339613B (en) | A kind of processing method, terminal and server using data | |
CN105871838A (en) | Third party account login control method and user center platform | |
CN106533807A (en) | Method and system for remotely upgrading terminal equipment | |
CN105227536A (en) | A kind of Quick Response Code login method and equipment | |
CN106330816A (en) | Method and system for logging in cloud desktop | |
CN109062690A (en) | A kind of request responding method, server, medium and system | |
CN109067785A (en) | Cluster authentication method, device | |
CN108830099A (en) | Call verification method, device, computer equipment and the storage medium of api interface | |
CN109995748A (en) | A kind of identifying code processing method, equipment and system | |
CN113824628B (en) | User identity authentication method, device, server and storage medium based on IM | |
CN109039595B (en) | Method, device and server for reducing time delay of issuing temporary password of Internet of things terminal | |
CN107689941A (en) | A kind of apparatus and method for preventing same user's repeat logon | |
CN107248995A (en) | Account verification method and device | |
CN103747051A (en) | Service platform of vehicle-mounted terminal | |
CN104796408A (en) | Single-point live login method and device | |
CN104348613B (en) | User verification method, apparatus and system | |
CN109547481A (en) | A kind of website user's conversation managing method based on Redis ordered set and token mode | |
CN109992940A (en) | Auth method, device, system and proof of identity server | |
CN108833378A (en) | A kind of processing method and system that more account numbers log in | |
CN110430062A (en) | Logging request processing method, device, equipment and medium | |
CN109525588A (en) | A kind of identifying code processing method, equipment and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20181116 |