CN106973062A - A kind of conversation managing method and server - Google Patents
A kind of conversation managing method and server Download PDFInfo
- Publication number
- CN106973062A CN106973062A CN201710284591.3A CN201710284591A CN106973062A CN 106973062 A CN106973062 A CN 106973062A CN 201710284591 A CN201710284591 A CN 201710284591A CN 106973062 A CN106973062 A CN 106973062A
- Authority
- CN
- China
- Prior art keywords
- session
- server
- unique mark
- user
- client
- 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
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/146—Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
-
- 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/0815—Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
Abstract
The invention discloses a kind of conversation managing method and server, the conversation managing method includes server and receives the logging request that client is sent, the logging request includes ID, server searches session ID corresponding with the ID from the mapping table prestored, the session ID of the active session are sent to the client by server when it is determined that the session associated with the session ID is effective;It effectively prevent when the corresponding session of ID is effective, server creates new session for the ID again, therefore the processing load of application server is advantageously reduced, improve the treatment effeciency of server, it is also convenient for request of the server to relative users ID to be tracked with operation, while can also reduce the space hold for storing corresponding session and session ID.
Description
Technical field
The present invention relates to communication technical field, more specifically to a kind of conversation managing method and server.
Background technology
In network technique field, " session " that is to say " session ", generally, be specific to the session in web
Refer to user and close passed through this period from entrance website to browser when browsing some websites, that is, user browses this
The time that individual website is spent.From above-mentioned implication as can be seen that session can essentially to be understood as a specific time general
Read.From the point of view of function aspects, session is primarily used to preserve client and service end holding ession for telecommunication in web applications
Some useful informations, such as depositing the logging status of user, login time.
Start when user enters this application, the client that server will use for the user creates a session,
And corresponding session unique mark (session ID) is sent to the client, whenever user initiates corresponding browse request
When, client will carry the session ID and be sent to server, and server is so as to easily being known and state prison
Survey etc..Generally, session has a fixed expired time, session whether be effectively based on this expired time and
What the newest once-through operation moment of user was judged, such as this between current time and the user newest once-through operation moment
Period has exceeded expired time, and now this session is also just failed, and is sent when server receives the client again
Browse request when, it will for its create a new session.If can also be led in addition, user directly closes this application
Cause session failures.
Existing session management is based on equipment or IP, client, for same user's unique mark (user
ID), in the case where there is corresponding effectively session, server may also re-create new effective session.For example
When user inputs the ID (such as user account) and corresponding user cipher of oneself by the client on oneself mobile phone
Sign in after a certain application, client will send access request to corresponding server, and server will according to the access request
If creating a session for the client, now the user passes through the other-end of oneself, such as flat board or notebook computer
After signing in the application Deng the client installed on electronic equipment with same ID, although now the ID is also present
Corresponding effectively session, but server still can create a new session for the client again, and pass through this
Individual newly-built session tracks the correlation behavior of same ID to record.In this way, following problem will be produced:
Because ID quantity is typically very huge under server, if server is directed to same ID corresponding
In the case of session is effective, it also may proceed to create new session, this is undoubtedly by the processing of serious increase application server
Load, so as to be unfavorable for normal process of the application server to other business, simultaneously, it is also desirable to occupy bigger memory space with
For storing these session and corresponding sessionID.
The content of the invention
The technical problem to be solved in the present invention is:Existing session Managed Solutions can only based on device identification or
The IP address that client is logged in is managed to session, when same user account is logged on different devices, this management
Mode can set up multiple effective session for the user account, add the processing load of server, occupy bigger storage
Space, is unfavorable for normal process of the server to other business.For the technical problem there is provided a kind of conversation managing method and
Server.
In order to solve the above technical problems, the invention provides a kind of server, the server includes:
Acquisition module is used to obtain user's unique mark included in the logging request of client transmission;
Processing module is used to from the mapping table prestored search session corresponding with user's unique mark
Unique mark;
Sending module is used for when the processing module judges that the session associated with the session unique mark is effective, will
The session unique mark is sent to the client.
Further, the server also includes creation module, for judging in the processing module with the user only
It is that user's unique mark creates session, and corresponding meeting is distributed for the session when the associated session of one mark is invalid
Talk about unique mark;The sending module is additionally operable to the session unique mark being sent to the client, and for by institute
State session unique mark and be sent to associated storage in the mapping table with user's unique mark.
Further, the server also includes receiving module, please for receiving the page operation that the client is sent
Ask, and obtain the session unique mark carried in the page operation request;The processing module is additionally operable to according to the session
Unique mark uses the active session associated with the session unique mark.
Further, processing module is used in session unique mark corresponding with user's unique mark more than one
When, select the session unique mark of newest storage;And remembered according to the corresponding session of session unique mark of the newest storage
The information of record determines whether the time interval currently with the last action moment of user is less than pre-determined threshold;When being, institute is determined
Session is stated effectively, otherwise, it determines the session is invalid.
The present invention also provides a kind of conversation managing method, and the conversation managing method includes:
Server receives the logging request that client is sent, and the logging request includes user's unique mark;
The server searches session corresponding with user's unique mark only from the mapping table prestored
One mark;
The server is when it is determined that the session associated with the session unique mark is effective, by the session of the session
Unique mark is sent to the client.
Further, the conversation managing method also includes:
The server is that the user uniquely marks when it is determined that the session associated with user's unique mark is invalid
Know and create session;
The server is that the session distributes corresponding session unique mark;
The session unique mark is sent to the client by the server, and by the session unique mark and institute
User's unique mark associated storage is stated into the mapping table.
Further, the server is searched corresponding with user's unique mark from the mapping table prestored
Session unique mark before, in addition to:
The server determines the visitor according to the user's unique mark and user cipher that are carried in the logging request
Family end identity is legal.
Further, the session unique mark is sent to after the client by the server, in addition to:It is described
Server receives the page operation request that the client is sent, and carrying the session in the page operation request uniquely marks
Know, the server uses the active session associated with the session unique mark according to the session unique mark.
Further, the server determines whether the session associated with user's unique mark effectively includes:
When session unique mark corresponding with user's unique mark is more than one, the server selection is newest to deposit
The session unique mark of storage;
The information that the server is recorded according to the corresponding session of session unique mark of the newest storage determines to work as
Whether the time interval at the preceding last action moment with user is less than pre-determined threshold;When being, the session is determined effectively, it is no
Then, determine that the session is invalid.
Further, the conversation managing method also includes:The server in the mapping table with it is each described
The corresponding failed session unique mark of user's unique mark is cleared up.
Beneficial effect
The present invention provides a kind of conversation managing method and server, and the conversation managing method includes server and receives visitor
The logging request that family end is sent, the logging request includes ID, and server is searched from the mapping table prestored
Session ID corresponding with the ID, server, will when it is determined that the session associated with the session ID is effective
The session ID of the active session are sent to the client;Due to the Managed Solution that provides of the present invention set up be ID with
Corresponding relation between session ID, so this Managed Solution is that session is managed based on user account, no matter
ID is logged in simultaneously in how many equipment, as long as session corresponding with the ID is effective, server all will directly make
The active session is used, without being that the ID creates new active session again, it is to avoid existing to be based on equipment, IP or visitor
The problem of session management mode at family end may will create multiple active sessions for the ID, therefore advantageously reduce using clothes
It is engaged in the processing load of device, is conducive to improving the treatment effeciency of server, reduces for storing corresponding session and Conference ID
Space hold;On the other hand, the scheme that the present invention is provided is also convenient for request of the server to ID and is tracked with operation, carries
Rise server session corresponding to each ID management quality.
Brief description of the drawings
Below in conjunction with drawings and Examples, the invention will be further described, in accompanying drawing:
A kind of conversation managing method schematic flow sheet that Fig. 1 provides for first embodiment of the invention;
A kind of conversation managing method schematic flow sheet that Fig. 2 provides for second embodiment of the invention;
A kind of structural representation for server that Fig. 3 provides for third embodiment of the invention;
The structural representation for another server that Fig. 4 provides for third embodiment of the invention;
The structural representation for another server that Fig. 5 provides for third embodiment of the invention;
A kind of structural representation for server that Fig. 6 provides for fourth embodiment of the invention.
Embodiment
It is described in detail below by way of specific embodiment, it will be appreciated that specific embodiment described herein is only used
To explain the present invention, it is not intended to limit the present invention.
First embodiment
Reference picture 1, the conversation managing method schematic flow sheet that Fig. 1 provides for first embodiment of the invention, including following step
Suddenly:
S11:Server receives the logging request that client is sent, and the logging request includes ID.
In the present embodiment, service implement body can be the application server of certain shopping center, the application server of certain bank,
Application server of certain airline etc..Server can receive the logging request that client is sent to, it is necessary to explanation
It is that the logging request includes ID, such as the account ID that user registers on the web site, also including in logging request should
The user cipher of ID, server can verify whether this login is legal according to ID and corresponding user cipher,
It that is to say whether the account and password of this login of checking are correct, to ensure that this login is by related Client-initiated.
The mode of checking is not limited herein, can be existing any verification mode.
S12:Server searches session ID corresponding with the ID from the mapping table prestored.
When device to be serviced verifies that this logs in legal, ID entrained in User logs in request is obtained, and according to
The ID searches session ID corresponding with the ID in the mapping table prestored.The mapping table
In the memory that server itself can be stored in, it can also be stored by other outside storage devices, including but not
It is limited to storage and arrives conversation server, database, it should be appreciated that when the number of sessions for needing to store is huge, occupancy is deposited
When storage space is larger, it can be stored by special server and (that is to say above-mentioned conversation server).Further,
In order to improve the process performance and redundancy ability of conversation server, the mode that may be arranged as cluster is stored, and is formed
Session cluster server, to store the information such as session or mapping table.
No matter mapping table is stored in server itself, or storage is filled to other storages outside the server itself
Put, the server can be called at any time when needed.
In this, mapping table may refer to shown in following table:
Table 1
User's unique mark | Session unique mark |
ID 1 | Session ID1 |
ID 2 | Session ID2 |
ID 3 | Session ID3 |
It should be appreciated that the possible more than one of the corresponding Session ID of an ID, may generally be included multiple
Session ID because after Session failure server may will again for the ID create new Session with
And Session ID, existing Session way to manages even when the currently used Session ID of the ID are effective, when
User by other equipment carry out log in this ID when, server can also for the user create a new Session with
And corresponding Session ID, namely now have in the corresponding Session of the ID 2 Session be it is effective, simultaneously also
Including other invalid Session and Session ID, therefore the corresponding Session ID of an ID may not only one
It is individual.
In the present embodiment, the corresponding Session ID of an ID may have multiple, but at most only one of which is that have
Effect, it that is to say that the conversation managing method that the present embodiment is provided will not be created newly again when also there is an effective Session
Active session.To reduce the processing load of server, for same ID, a Session is passed through in the same time
Record can more easily be managed to it.
Relation corresponding table in the present embodiment, can be only by effective Session when there is multiple Session ID
ID is stored in the mapping table, can also be updated in real time, and judges that some Session ID fails at current time
When, then its (failure session ID) is deleted from the mapping table immediately.It is of course also possible to whole Session
ID is stored in the mapping table.For example it is stored in when relative users ID whole Session ID in the mapping table
When, it may refer to shown in following table:
Table 2
In the present embodiment, mapping table can be created by server and generated, and is stored in corresponding storage device
With standby.In the present embodiment, major key, device number, client ip and landing time first can also be included in mapping table
Etc. information.Specifically, can be realized by following program:
CREATE TABLE`nb_user_session`(
`id`int (11) NOT NULL AUTO_INCREMENT COMMENT' major keys ',
`uid`int (11) NOT NULL COMMENT' account id',
`session_id`varchar(100)NOT NULL COMMENT'session_id',
`imei`varchar (50) DEFAULT " COMMENT' device numbers ',
`client_ip`varchar (32) DEFAULT'127.0.0.1'COMMENT' client ips ',
`login_time`int (11) DEFAULT'0'COMMENT' first landing time ',
PRIMARY KEY(`id`),
KEY`uid_index`(`uid`),
KEY`token_id_index`(`session_id`)
);
S13:The session ID are sent to the visitor by server when it is determined that the session associated with the ID is effective
Family end.
In the present embodiment, when mapping table session ID corresponding with the ID is more than one, server choosing
Select the session ID of newest storage;And the information recorded according to the corresponding session of session ID of newest storage is true
Whether the time interval before settled with the last action moment of user is less than pre-determined threshold;When being, determine that the session has
Effect, otherwise, it determines the session is invalid.Pre-determined threshold can flexibly be set according to practical application scene, for example, be set to 15
Minute, 24 minutes, 30 minutes etc..
For example, when pre-determined threshold is 15 minutes, it is assumed that what the corresponding session of session ID of newest storage were recorded
In information, user is t1 at the last action moment, and current time is t2, then currently between the time at user's last action moment
Every being t2-t1, now, if time interval t2-t1 value is more than or equal to pre-determined threshold 15 minutes, server judges should
Session fails, if being less than, and judges effective.
Further, server can also enter to failure session ID corresponding with each ID in the mapping table
Row cleaning.
It should be noted that after server clears up the session ID failed in mapping table, now
When finding session ID corresponding with the ID, the session ID are directly can confirm that effectively, because corresponding relation
That stored in table is all effective session ID, and corresponding judgement has been carried out in its essence.Judge whether session has herein
The method of effect can also use existing any determination methods, no longer illustrate herein.
, it is necessary to judge whether corresponding session is effective according to ID in the present embodiment, and judging corresponding
When session is effective, the corresponding session ID of the effective session are sent to corresponding client.Only in server
When judging that corresponding session is invalid, just new session and corresponding session ID can be created for the ID.Effectively keep away
The existing situation that multiple session are created to same ID is exempted from, while preferably can enter to the user under server
Row preferably management, decreases server and repeatedly creates processing load caused by session, be conducive to improving server to other
The treatment effeciency of business.
It should be appreciated that when server is when it is determined that the session associated with the ID is invalid, for the ID
Session is created, while distributing corresponding session ID for the session, and the session ID client is sent to.Enter one
Step over the ground, server should also by the session ID of the establishment and the ID associated storage into mapping table, in case
Next time searches and used.Same ID has been effectively ensured while can only at most there is an effective session ID.
It should be appreciated that after corresponding effective session ID are sent to client by server, server may be used also
To receive the page operation request that the client is sent to, page operation request includes the session ID, may be used also certainly
With including other relevant informations, such as the page info asked.Server is taken in can also being asked according to page operation
The session ID of band, the session being associated using the session ID, server is not this using the detailed process of session
The emphasis of invention, the any-mode of session can be used using existing server, is not explained in this.Further, take
The page that business device is asked in can also being asked according to page operation is sent to the client.
The present invention provides a kind of conversation managing method, and the logging request that client is sent, server are received by server
The lookup session ID corresponding with the ID included in the logging request from the mapping table prestored, and
It is determined that during in the presence of the active session associated with the session ID, the session ID of the session are sent to the client,
The existing situation that multiple sessions are created to same ID is effectively prevent, while can be preferably to the user under server
Preferably management tracking is carried out, server is decreased and repeatedly creates processing load caused by session, be conducive to improving server
To the treatment effeciency of other business.
Second embodiment
The present embodiment provides a kind of conversation managing method on the basis of first embodiment, refer to Fig. 2, and Fig. 2 is this hair
The conversation managing method schematic flow sheet that bright second embodiment is provided, including:
S21:Server receives the logging request that client is sent.
Here ID is at least included in logging request.
S22:Server judges whether the client identity that this is logged in is legal, in this way, goes to step S23, if not, knot
Beam.
Also include the user cipher of the ID in logging request, server can be according to ID and corresponding user
Whether this login of password authentification is legal, that is to say whether the account and password of this login of checking are correct, to ensure this
Login is by related Client-initiated.The mode of checking is not limited herein, can be existing any verification mode.
S23:Server is searched whether from the mapping table prestored in the presence of corresponding with the ID
Session ID, in this way, go to step S24, such as no, go to step S26.
Mapping table can be created by server, and server can also be stored it in database, work as clothes
When business device receives corresponding logging request, it can be called from the database.
S24:Server judges whether the session associated with the session ID be effective, in this way, goes to step S25, such as
It is no, go to step S26.
One session of usual session ID correspondences, when whois lookup to session corresponding with the ID
During ID, in addition it is also necessary to judge whether the session associated with the session ID that this finds be effective.
S25:The session ID of the active session are sent to the client.
When judgement session corresponding with the session ID is effective, the session ID of the active session are sent to this
Client.
S26:Server is that the client creates session, while corresponding session ID are distributed for the session, and should
Session ID are sent to the client, and will be by the session ID and the ID associated storage to mapping table
In.
When not finding session ID corresponding with the ID, or it is associated with the session ID found
When session is invalid, server will create a new session for the ID and distribute corresponding session ID.And should
Session ID are sent to the client, and will be by the session ID and the ID associated storage to mapping table
In.The session of the establishment can also be stored in session cluster server by server, it should be appreciated that session cluster service
Device should be made up of multiple servers, for storing session, and storing corresponding session by session cluster server can be with
Avoid occurring the problem of server can not obtain session during single server fail.
The present invention provides a kind of conversation managing method, can effectively prevent existing multiple to the establishment of same ID
Session situation, tracks while preferably management preferably can be carried out to the user under server, decreases server
Processing load caused by session is repeatedly created, is conducive to improving treatment effeciency of the server to other business.
3rd embodiment
The present embodiment provides a kind of server, refer to Fig. 3, a kind of service that Fig. 3 provides for third embodiment of the invention
The structural representation of device, the server 30 includes acquisition module 31, processing module 32, sending module 33:
Wherein, acquisition module 31 is used to obtain the ID included in the logging request of client transmission.
Processing module 32 is used to from the mapping table prestored search session ID corresponding with the ID.
The ID that processing module 32 is obtained according to acquisition module 31, it is corresponding with the ID for being searched from mapping table
session ID.Mapping table can be stored in the memory of server itself, can also pass through other storage devices
Stored, conversation server, database are arrived in including but not limited to storage, and no matter mapping table is stored in server certainly
Body, or storage is to other storage devices outside the server itself, processing module 32 can be with when needing to be searched
When call.
When processing module 32 finds session ID corresponding with the ID, it can also judge and the session ID
Whether associated session is effective.Specifically, processing module is used in session ID corresponding with the ID more than one
When, select the session ID of newest storage;And the information recorded according to the corresponding sessions of session ID of newest storage
It is determined that currently whether the time interval with the last action moment of user is less than pre-determined threshold;When being, the session is determined
Effectively, otherwise, it determines the session is invalid.
For example, when pre-determined threshold is 30 minutes, it is assumed that the letter that the corresponding sessions of session ID of newest storage are recorded
In breath, user is 8 at the last action moment:00, and current time is 8:40 (assuming that on the same day), then currently grasped with user upper one
The time interval for making the moment is 8:40-8:00=40 minutes, now, pre-determined threshold is more than or equal in 40 minutes due to time interval
30 minutes, processing module 32 will determine that the session failed.
In the present embodiment, processing module 32 is not limited to aforesaid way and judges whether session is effective, can also be according to existing
Other any judgment modes judged.
In the present embodiment, sending module 33 included by server 30, for judging and the session in processing module 32
When session associated ID is effective, the session ID are sent to the client.
In the present embodiment, server 30 can also include creation module 34, refer to Fig. 4, the creation module 34 is used for
When processing module 32 judges that the session associated with the ID is invalid, session is created for the client, and be the session
Distribute corresponding session ID;Now, the session ID that sending module 33 is additionally operable to create creation module 34 are sent
To relative client, and for the session ID and the ID to be sent into associated storage in mapping table.
In the present embodiment, processing module 32 can be also used for ID and user cipher checking in logging request
Whether the client identity is legal, and notifies acquisition module 31 to obtain the ID when verifying legal.It should be noted that
The logging request includes ID, such as the account ID that user registers on the web site, and the use is also included in logging request
Family ID user cipher, processing module 32 can verify whether this login closes according to ID and corresponding user cipher
Method, that is to say whether the account and password of this login of checking are correct, to ensure that this login is initiated by related user
's.The mode of checking is not limited herein, can be existing any verification mode.
The present embodiment provide server 30 in acquisition module 31, sending module 33 can be realized by communicator,
In addition, processing module 32 therein, creation module 34 can then be realized by processor.Specifically refer to Fig. 5, the server
Including processor 52, communicator 55, internal memory 54, storage 53 and bus 51 can also be included.
Wherein it is possible to be used to obtain included in the logging request that client is sent by the acquisition module of communicator 55
ID, processor 52 is used to from the mapping table prestored search session ID corresponding with the ID, and
Judge whether the session associated with the session ID be effective, and when judging effective, control communicator 55 should
Session ID are sent to the client.
Further, processor 52 is when judging that the session associated with the session ID is invalid, for the client
Session is created, and corresponding session ID are distributed for the session;Processor 52 can be also used for control communicator 55 should
Session ID are sent to the client, and the session ID are sent to associate in memory 53 with the ID deposited
Store up in other storage devices in mapping table or being sent to outside the server and be associated storage.
Input and output (IO) bus 51 respectively with other parts of the server belonging to itself (processor 52, memory 53,
Internal memory 54 and communicator 55) connection, and provide transmission lines for other parts.Processor 52 is generally controlled belonging to itself
The overall operation of server.Wherein, processor 52 can be central processing unit (CPU).Communicator 55, generally include one or
Multiple components, it allows the radio communication between the server belonging to itself and wireless communication system or network.Memory 53
The software code that processor is readable, processor is executable is stored, it includes and performs work(described herein for control processor 52
The instruction (i.e. software perform function) of energy.
The embodiment of the present invention provides a kind of server, including processing module is used for the ID in the logging request
And user cipher is when verifying that the client identity is legal, the acquisition module is notified to obtain the ID;Acquisition module
For receiving the ID included in the logging request that acquisition client is sent after processing module is notified;Processing module is also used
In the lookup session ID corresponding with the ID from the mapping table prestored;Judge module is used to judge with being somebody's turn to do
Whether session associated session ID is effective;Sending module is used to judge associated with the session ID in processing module
Session it is effective when, the session ID are sent to the client;The server can also include creation module, be used for
When processing module judges that the session associated with the ID is invalid, session is created for the client, and be the session point
With corresponding session ID;Now, sending module is additionally operable to the session ID of establishment being sent to the client, Yi Jiyong
Storage is associated in the session ID of the establishment and the ID are sent in mapping table;It effectively prevent existing
The situation that multiple sessions are created to same ID, decrease server and repeatedly create processing load caused by session, have
Beneficial to treatment effeciency of the server to other business is improved, while preferably can preferably be managed to the user under server
Reason tracking.
Fourth embodiment
The present embodiment on the basis of 3rd embodiment there is provided a kind of server, to realize first embodiment and second
Conversation managing method described in embodiment.From unlike 3rd embodiment, the server also include receiving module, refer to
The structural representation for the server that Fig. 6, Fig. 6 provide for fourth embodiment of the invention.
The server 60 that the present embodiment is provided includes acquisition module 61, processing module 62, sending module 63, creation module 64
And receiving module 65, wherein acquisition module 61, processing module 62, sending module 63, creation module 64 are respectively including the 3rd reality
Acquisition module 31 in example, processing module 32, sending module 33, the effect of creation module 34 are applied, it will not be described herein.
In the server 60 that the present embodiment is provided, receiving module 65 is described for receiving including for client transmission
Session ID page operation request, the session ID included in page operation request are that server is sent to client
's.The session ID that processing module 62 is additionally operable in being asked according to page operation use active session associated therewith,
Same ID be ensure that while can only at most exist and using an effective session, decrease server and repeatedly create
Processing load caused by session.Now, the sending module 33 can be also used for the page asked during the page operation is asked
Face feeds back to relative client.
Receiving module 65 in the present embodiment can be realized by the communicator 55 in Fig. 5.
The embodiment of the present invention provide a kind of server, including acquisition module, processing module, sending module, creation module with
And receiving module, the existing situation that multiple sessions are created to same ID can be effectively prevent, server is reduced many
Processing load caused by secondary establishment session, is conducive to improving treatment effeciency of the server to other business, while can be preferably
More preferable tracing management is carried out to the user under server.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and
And also including other key elements being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Also there is other identical element in process, method, article or the device of key element.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Understood based on such, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are to cause a station terminal equipment (can be mobile phone, computer, clothes
It is engaged in device, air conditioner, or network equipment etc.) perform method described in each embodiment of the invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific
Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art
Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot
Form, these are belonged within the protection of the present invention.
Claims (10)
1. a kind of server, it is characterised in that including:
Acquisition module is used to obtain user's unique mark included in the logging request of client transmission;
It is unique that processing module is used for the lookup session corresponding with user's unique mark from the mapping table prestored
Mark;
Sending module is used for when the processing module judges that the session associated with the session unique mark is effective, will be described
Session unique mark is sent to the client.
2. server according to claim 1, it is characterised in that the server also includes creation module, in institute
It is user's unique mark establishment meeting when stating processing module and judging that associated with user's unique mark session is invalid
Words, and distribute corresponding session unique mark for the session;The sending module is additionally operable to send out the session unique mark
The client is given, and for the session unique mark and user's unique mark to be sent into the corresponding relation
Associated storage in table.
3. server according to claim 1, it is characterised in that the server also includes receiving module, for receiving
The page operation request that the client is sent, and obtain the session unique mark carried in the page operation request;It is described
Processing module is additionally operable to use the active session associated with the session unique mark according to the session unique mark.
4. the server according to claim any one of 1-3, it is characterised in that the processing module is used to use with described
When unique mark corresponding session unique mark in family is more than one, the session unique mark of newest storage is selected;And according to described
Information that the corresponding session of session unique mark of newest storage is recorded determine currently with the last action moment of user when
Between be spaced whether be less than pre-determined threshold;When being, the session is determined effectively, otherwise, it determines the session is invalid.
5. a kind of conversation managing method, it is characterised in that including:
Server receives the logging request that client is sent, and the logging request includes user's unique mark;
The server is searched session corresponding with user's unique mark from the mapping table prestored and uniquely marked
Know;
The server is unique by the session of the session when it is determined that the session associated with the session unique mark is effective
Mark is sent to the client.
6. conversation managing method according to claim 5, it is characterised in that also include:
The server is user's unique mark wound when it is determined that the session associated with user's unique mark is invalid
Build session;
The server is that the session distributes corresponding session unique mark;
The session unique mark is sent to the client by the server, and the session unique mark is used with described
Family unique mark associated storage is into the mapping table.
7. conversation managing method according to claim 5, it is characterised in that the server is closed from the correspondence prestored
It is before session unique mark corresponding with user's unique mark is searched in table, in addition to:
The server determines the client according to the user's unique mark and user cipher that are carried in the logging request
Identity is legal.
8. conversation managing method according to claim 5, it is characterised in that the server is by the session unique mark
It is sent to after the client, in addition to:The server receives the page operation request that the client is sent, the page
The session unique mark is carried in the operation requests of face, the server is used and the meeting according to the session unique mark
Talk about the associated active session of unique mark.
9. the conversation managing method according to claim any one of 5-8, it is characterised in that the server determine with it is described
Whether the associated session of user's unique mark effectively includes:
When session unique mark corresponding with user's unique mark is more than one, the server selects newest storage
Session unique mark;
The information that the server is recorded according to the corresponding session of session unique mark of the newest storage determine currently with
Whether the time interval at the last action moment of user is less than pre-determined threshold;When being, the session is determined effectively, otherwise, really
The fixed session is invalid.
10. conversation managing method according to claim 9, it is characterised in that also include:
The server enters to failed session unique mark corresponding with each user's unique mark in the mapping table
Row cleaning.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710284591.3A CN106973062A (en) | 2017-04-27 | 2017-04-27 | A kind of conversation managing method and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710284591.3A CN106973062A (en) | 2017-04-27 | 2017-04-27 | A kind of conversation managing method and server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106973062A true CN106973062A (en) | 2017-07-21 |
Family
ID=59332656
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710284591.3A Pending CN106973062A (en) | 2017-04-27 | 2017-04-27 | A kind of conversation managing method and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106973062A (en) |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107547634A (en) * | 2017-07-28 | 2018-01-05 | 新华三信息安全技术有限公司 | A kind of conversation managing method and device |
CN107682397A (en) * | 2017-08-28 | 2018-02-09 | 平安科技(深圳)有限公司 | Customer resources acquisition methods, device, terminal device and storage medium |
CN107895011A (en) * | 2017-11-03 | 2018-04-10 | 携程旅游网络技术(上海)有限公司 | Processing method, system, storage medium and the electronic equipment of session information |
CN107911443A (en) * | 2017-11-14 | 2018-04-13 | 北京小度信息科技有限公司 | A kind of session information processing method, device, server and readable storage medium storing program for executing |
CN108632234A (en) * | 2017-08-28 | 2018-10-09 | 北京视联动力国际信息技术有限公司 | A kind of user login method and device |
CN108990172A (en) * | 2018-07-06 | 2018-12-11 | 四川九洲电器集团有限责任公司 | Method that is a kind of while managing multiple WIFI sound equipment Broadcast Controls |
CN109145061A (en) * | 2018-07-26 | 2019-01-04 | 阿里巴巴集团控股有限公司 | A kind of method, database and the server of database distribution session object |
CN110475088A (en) * | 2018-05-09 | 2019-11-19 | 视联动力信息技术股份有限公司 | A kind of method and apparatus that user logs in |
CN110557396A (en) * | 2019-09-09 | 2019-12-10 | 苏宁消费金融有限公司 | method and system for unifying login sessions between H5 clients |
CN111092864A (en) * | 2019-11-29 | 2020-05-01 | 苏州浪潮智能科技有限公司 | Session protection method, device, equipment and readable storage medium |
CN111131186A (en) * | 2019-12-06 | 2020-05-08 | 苏州浪潮智能科技有限公司 | Http session protection method, device, equipment and medium |
CN111131002A (en) * | 2019-12-30 | 2020-05-08 | 论客科技(广州)有限公司 | Method, system and storage medium for tracing chat records |
CN111225019A (en) * | 2019-10-29 | 2020-06-02 | 中国银联股份有限公司 | Session control processing method, device, equipment and medium |
CN111818179A (en) * | 2020-08-07 | 2020-10-23 | 中国工商银行股份有限公司 | User request processing method and device, computing equipment and medium |
CN112149019A (en) * | 2020-09-15 | 2020-12-29 | 北京字节跳动网络技术有限公司 | Method, apparatus, electronic device, and computer-readable medium for displaying information |
CN112839016A (en) * | 2019-11-25 | 2021-05-25 | 上海哔哩哔哩科技有限公司 | Session control method and device |
CN115190159A (en) * | 2022-07-08 | 2022-10-14 | 中国工商银行股份有限公司 | Session control method, device, electronic equipment and medium |
CN115208617A (en) * | 2022-05-19 | 2022-10-18 | 上海格尔安全科技有限公司 | Web session detection method and device, computer equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010099030A1 (en) * | 2009-02-24 | 2010-09-02 | Telcordia Technologies, Inc. | Systems and methods for single session management in load balanced application server clusters |
CN102082800A (en) * | 2011-01-28 | 2011-06-01 | 浪潮(北京)电子信息产业有限公司 | User request processing method and server |
CN103152331A (en) * | 2013-02-07 | 2013-06-12 | 百度在线网络技术(北京)有限公司 | Method and system for logging in/registering through mobile terminal and cloud server |
CN103532919A (en) * | 2012-07-06 | 2014-01-22 | 腾讯科技(深圳)有限公司 | Method and system for maintaining login state of user account |
CN106534158A (en) * | 2016-11-29 | 2017-03-22 | 努比亚技术有限公司 | Account login control device and method |
-
2017
- 2017-04-27 CN CN201710284591.3A patent/CN106973062A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010099030A1 (en) * | 2009-02-24 | 2010-09-02 | Telcordia Technologies, Inc. | Systems and methods for single session management in load balanced application server clusters |
CN102082800A (en) * | 2011-01-28 | 2011-06-01 | 浪潮(北京)电子信息产业有限公司 | User request processing method and server |
CN103532919A (en) * | 2012-07-06 | 2014-01-22 | 腾讯科技(深圳)有限公司 | Method and system for maintaining login state of user account |
CN103152331A (en) * | 2013-02-07 | 2013-06-12 | 百度在线网络技术(北京)有限公司 | Method and system for logging in/registering through mobile terminal and cloud server |
CN106534158A (en) * | 2016-11-29 | 2017-03-22 | 努比亚技术有限公司 | Account login control device and method |
Cited By (28)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107547634A (en) * | 2017-07-28 | 2018-01-05 | 新华三信息安全技术有限公司 | A kind of conversation managing method and device |
CN107547634B (en) * | 2017-07-28 | 2020-11-03 | 新华三信息安全技术有限公司 | Session management method and device |
CN107682397A (en) * | 2017-08-28 | 2018-02-09 | 平安科技(深圳)有限公司 | Customer resources acquisition methods, device, terminal device and storage medium |
CN108632234A (en) * | 2017-08-28 | 2018-10-09 | 北京视联动力国际信息技术有限公司 | A kind of user login method and device |
CN107682397B (en) * | 2017-08-28 | 2019-02-26 | 平安科技(深圳)有限公司 | Customer resources acquisition methods, device, terminal device and storage medium |
CN107895011B (en) * | 2017-11-03 | 2020-05-26 | 携程旅游网络技术(上海)有限公司 | Session information processing method, system, storage medium and electronic equipment |
CN107895011A (en) * | 2017-11-03 | 2018-04-10 | 携程旅游网络技术(上海)有限公司 | Processing method, system, storage medium and the electronic equipment of session information |
CN107911443A (en) * | 2017-11-14 | 2018-04-13 | 北京小度信息科技有限公司 | A kind of session information processing method, device, server and readable storage medium storing program for executing |
CN107911443B (en) * | 2017-11-14 | 2021-01-26 | 北京星选科技有限公司 | Session information processing method, device, server and readable storage medium |
CN110475088B (en) * | 2018-05-09 | 2021-06-11 | 视联动力信息技术股份有限公司 | User login method and device |
CN110475088A (en) * | 2018-05-09 | 2019-11-19 | 视联动力信息技术股份有限公司 | A kind of method and apparatus that user logs in |
CN108990172A (en) * | 2018-07-06 | 2018-12-11 | 四川九洲电器集团有限责任公司 | Method that is a kind of while managing multiple WIFI sound equipment Broadcast Controls |
CN109145061A (en) * | 2018-07-26 | 2019-01-04 | 阿里巴巴集团控股有限公司 | A kind of method, database and the server of database distribution session object |
CN110557396B (en) * | 2019-09-09 | 2022-03-15 | 苏宁消费金融有限公司 | Method and system for unifying login sessions between H5 clients |
CN110557396A (en) * | 2019-09-09 | 2019-12-10 | 苏宁消费金融有限公司 | method and system for unifying login sessions between H5 clients |
CN111225019A (en) * | 2019-10-29 | 2020-06-02 | 中国银联股份有限公司 | Session control processing method, device, equipment and medium |
WO2021082538A1 (en) * | 2019-10-29 | 2021-05-06 | 中国银联股份有限公司 | Session processing method and apparatus, device, and medium |
CN112839016B (en) * | 2019-11-25 | 2023-03-21 | 上海哔哩哔哩科技有限公司 | Session control method and device |
CN112839016A (en) * | 2019-11-25 | 2021-05-25 | 上海哔哩哔哩科技有限公司 | Session control method and device |
CN111092864A (en) * | 2019-11-29 | 2020-05-01 | 苏州浪潮智能科技有限公司 | Session protection method, device, equipment and readable storage medium |
CN111131186A (en) * | 2019-12-06 | 2020-05-08 | 苏州浪潮智能科技有限公司 | Http session protection method, device, equipment and medium |
CN111131002B (en) * | 2019-12-30 | 2022-06-03 | 论客科技(广州)有限公司 | Method, system and storage medium for tracing chat records |
CN111131002A (en) * | 2019-12-30 | 2020-05-08 | 论客科技(广州)有限公司 | Method, system and storage medium for tracing chat records |
CN111818179A (en) * | 2020-08-07 | 2020-10-23 | 中国工商银行股份有限公司 | User request processing method and device, computing equipment and medium |
CN112149019A (en) * | 2020-09-15 | 2020-12-29 | 北京字节跳动网络技术有限公司 | Method, apparatus, electronic device, and computer-readable medium for displaying information |
CN115208617A (en) * | 2022-05-19 | 2022-10-18 | 上海格尔安全科技有限公司 | Web session detection method and device, computer equipment and storage medium |
CN115208617B (en) * | 2022-05-19 | 2024-04-05 | 上海格尔安全科技有限公司 | Web session detection method, device, computer equipment and storage medium |
CN115190159A (en) * | 2022-07-08 | 2022-10-14 | 中国工商银行股份有限公司 | Session control method, device, electronic equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106973062A (en) | A kind of conversation managing method and server | |
CN110276182B (en) | API distributed current limiting realization method | |
CN109413032A (en) | A kind of single-point logging method, computer readable storage medium and gateway | |
US7600230B2 (en) | System and method for managing security meta-data in a reverse proxy | |
CN1852094B (en) | Method and system for protecting account of network business user | |
CN104270386B (en) | Across application system user (asu) information integrating method and identity information management server | |
CN112597472B (en) | Single sign-on method, device and storage medium | |
CN100534056C (en) | User log-on method and system in network game | |
CN107483418A (en) | Login process method, method for processing business, device and server | |
CN106936772A (en) | A kind of access method, the apparatus and system of cloud platform resource | |
CN110519240B (en) | Single sign-on method, device and system | |
CN101719238A (en) | Method and system for managing, authenticating and authorizing unified identities | |
WO2005074228A1 (en) | System and method for a directory secured user account | |
CN105022939B (en) | Information Authentication method and device | |
CN110493308B (en) | Distributed consistency system session method and device, storage medium and server | |
CN106775486A (en) | Data access system, method and routing server, configuration center server | |
CN106161364A (en) | A kind of personal authentication's credential management method and system based on mobile terminal | |
CN102143131A (en) | User logout method and authentication server | |
CN110430062B (en) | Login request processing method, device, equipment and medium | |
CN101557403A (en) | Website login method, device and system | |
CN108076077A (en) | A kind of conversation controlling method and device | |
CN106060097A (en) | Management system and management method for information security competition | |
CN106899564A (en) | A kind of login method and device | |
CN111404918A (en) | Cloud mobile phone distributed service emergency authentication method, device and system | |
CN108377244A (en) | A kind of Intranet uniform authentication method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170721 |
|
RJ01 | Rejection of invention patent application after publication |