CN107360054A - A kind of maintaining method and system of client session object - Google Patents

A kind of maintaining method and system of client session object Download PDF

Info

Publication number
CN107360054A
CN107360054A CN201710485848.1A CN201710485848A CN107360054A CN 107360054 A CN107360054 A CN 107360054A CN 201710485848 A CN201710485848 A CN 201710485848A CN 107360054 A CN107360054 A CN 107360054A
Authority
CN
China
Prior art keywords
session object
session
client
signature value
list
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.)
Withdrawn
Application number
CN201710485848.1A
Other languages
Chinese (zh)
Inventor
方敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Bill Trading Center Co Ltd
Original Assignee
Wuhan Bill Trading Center Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Wuhan Bill Trading Center Co Ltd filed Critical Wuhan Bill Trading Center Co Ltd
Priority to CN201710485848.1A priority Critical patent/CN107360054A/en
Publication of CN107360054A publication Critical patent/CN107360054A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • H04L63/101Access control lists [ACL]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present invention is more particularly directed to a kind of maintaining method of client session object, including:The log on request information for receiving and being sent according to client, generates session object parameter, and session object parameter includes ID, signature value and IP address;According to ID, its corresponding event handling thread is opened;It whether there is the first session object corresponding to ID in event handling thread retrieval activities user conversation list, if it is not, creating the second session object corresponding to session object parameter;When receiving the heartbeat packet of client transmission for the first time within the first default time limit, rebuild the second session object, first default time limit was more than the transmission cycle that client sends heartbeat packet, when not receiving the heartbeat packet of client transmission within the second default time limit more than the first default time limit, then the second session object is nullified.This method improves background server to the efficiency of management of user session object and the efficiency of user's online transaction, and effective technical support is provided for the transaction of participant.

Description

A kind of maintaining method and system of client session object
Technical field
The present invention relates to a kind of computer realm, the more particularly to a kind of maintaining method and system of client session object.
Background technology
At this stage, set in the online transaction such as bill field, increasing user by cell phone application, terminal etc. It is standby to log in transaction platform, carry out various forms of transaction.Inevitably, management of the back-end server to mass users is one Huge engineering.Because transaction is related to property, the number one of each transaction participant is further related to, therefore, to each use Effective management of any transaction of the family during online transaction, it is a significant problem.
The content of the invention
The invention provides a kind of maintaining method and system of client session object, background server is improved to user The efficiency of management of session object and the efficiency of user's online transaction, effective technical support is provided for the transaction of participant.
The technical scheme that the present invention solves above-mentioned technical problem is as follows:A kind of maintaining method of client session object, bag Include following steps:
Step 1, the log on request information for receiving and being sent according to client, generate session object parameter, the session pair As parameter includes ID, signature value and IP address;
Step 2, according to the ID, open its corresponding event handling thread;
With the presence or absence of corresponding to the ID in step 3, the event handling thread retrieval activities user conversation list First session object, if it is not, creating the second session object corresponding to the session object parameter;
Step 4, when receiving the heartbeat packet that the client is sent for the first time within the first default time limit, described in reconstruction Second session object, the described first default time limit are more than the transmission cycle that the client sends the heartbeat packet;
Step 5, send when not receiving the client within the second default time limit more than the described first default time limit Heartbeat packet when, then nullify second session object.
The beneficial effects of the invention are as follows:This method take into account in process of exchange and is likely to occur between client and server Various situations, including client logs in, contacts disconnection caused by Network Abnormal between client and server, gives transaction When a series of session object management service mechanism such as establishment, reconstruction and the destruction of session object, improve background server pair The efficiency of management of user session object and the efficiency of user's online transaction, effective technology branch is provided for the transaction of participant Hold, and built good trading environment.
On the basis of above-mentioned technical proposal, the present invention can also do following improvement.
Further, methods described also includes:
Step 6, when receiving that the client sends when publishing solicited message, nullify second session object, institute State and publish information and include the ID and the signature value.
The present invention further beneficial effect be:When user closes the trade, by user for session object note Pin, the related information of the user is removed, improve the safety of userspersonal information, and the session effectively in management backstage server Object.
Further, the step 3 also includes:
If the first session object corresponding to the ID in active user session list be present, the signature value is judged Whether signature value corresponding with first session object is consistent;
If so, send whether force the prompt message that logs in the client, when receiving what the client returned After the information that pressure logs in, stop first session object, create the second session object corresponding to the session object parameter, When receiving after not forcing the information logged in of the client return, then landing place corresponding to the log on request information is exited Reason;
Attempt to repeat the prompt message for logging in error if it is not, then sending to the client.
Further, in the step 3, the second session object corresponding to the establishment session object parameter, including:
Session object model is obtained from session object model list, by the ID, the signature value and the IP Address inputs the session object model;
The signature value is added to using signature value as in the session list of keyword, and by the ID be added to ID is in the session list of keyword;
The session object model containing the ID, the signature value and the IP address is added to lasting meeting Talk about in queue, complete the establishment of the second session object corresponding to the session object parameter, second session object includes institute State session object model, the ID, the signature value and the IP address.
Further, in the step 4, reconstruction second session object includes:
According to the IP address in the heartbeat packet, the ID and the signature value corresponding to it are obtained;
Session object model is obtained from session object model list, by the IP address, the ID and the label Name value inputs the session object model;
The signature value is added to using signature value as in the session list of keyword, and by the ID be added to ID is in the session list of keyword;
The session object model containing the ID, the signature value and the IP address is added to lasting meeting Talk about in queue, complete the reconstruction of second session object;
In the step 5 and the step 6, cancellation second session object, including:
According to the ID, its corresponding event handling thread is opened;
The event handling thread is according to the signature value from the session list using signature value as keyword described in acquisition Second session object, judge whether second session object is empty or inactive, if so, record and to the visitor Family end returns to the prompt message of mistake;Otherwise, the cancellation reason and log out time of second session object are set;
Second session object is removed from active user session list;
And second session object is put into and forbidden in access session queue, complete the note of second session object Pin.
To solve the technical problem of the present invention, a kind of maintenance system of client session object is additionally provided, including:
Connection server, for the log on request information for receiving and being sent according to client, generate session object parameter, institute Stating session object parameter includes ID, signature value and IP address;
Application server, for the ID generated according to the connection server, open at its corresponding event Thread is managed, whether there is the first session corresponding to the ID in the event handling thread retrieval activities user conversation list Object, if it is not, creating the second session object corresponding to the session object parameter;Received for the first time when within the first default time limit During the heartbeat packet sent to the client, second session object is rebuild, the described first default time limit was more than the client End sends the transmission cycle of the heartbeat packet;Institute is not received when being preset in second more than the described first default time limit in the time limit When stating the heartbeat packet of client transmission, then second session object is nullified.
The beneficial effects of the invention are as follows:This method take into account in process of exchange and is likely to occur between client and server Various situations, including client logs in, contacts disconnection caused by Network Abnormal between client and server, gives transaction When a series of session object management service mechanism such as establishment, reconstruction and the destruction of session object, improve background server pair The efficiency of management of user session object and the efficiency of user's online transaction, effective technology branch is provided for the transaction of participant Hold, and built good trading environment.
Further, the application server is additionally operable to:
When receiving when publishing solicited message of the client transmission, second session object is nullified, it is described to publish Information includes the ID and the signature value.
Further, the application server is additionally operable to:
If the first session object corresponding to the ID in active user session list be present, the signature value is judged Whether signature value corresponding with first session object is consistent;Whether force what is logged in carry if so, being sent to the client Show information, after the information that pressures that the client returns logs in is received, termination first session object, described in establishment Second session object corresponding to session object parameter, when receiving after not forcing the information logged in of the client return, then Exit and log in processing corresponding to the log on request information;Attempt to repeat to log in error if it is not, then sending to the client Prompt message.
Further, the application server includes session object creating unit;
The session object creating unit, for obtaining session object model from session object model list, by described in ID, the signature value and the IP address input the session object model;The signature value is added to signature value For in the session list of keyword, and the ID is added to using ID as in the session list of keyword;It will contain The session object model of the ID, the signature value and the IP address is added in persistent sessions queue, is completed The establishment of second session object corresponding to the session object parameter, second session object include the session object mould Type, the ID, the signature value and the IP address.
Further, the application server also includes session object reconstruction unit;
The session object reconstruction unit, for the IP address in the heartbeat packet, obtain the use corresponding to it Family ID and the signature value;Session object model is obtained from session object model list, by the IP address, the ID The session object model is inputted with the signature value;By the signature value added to the session list using signature value as keyword In, and the ID is added to using ID as in the session list of keyword;The ID, the signature will be contained The session object model of value and the IP address is added in persistent sessions queue, completes the weight of second session object Build;
The application server also includes session object and nullifies unit;
The session object nullifies unit, for according to the ID, opening its corresponding event handling thread;It is described Event handling thread obtains second session object according to the signature value from the session list using signature value as keyword, Judge whether second session object is empty or inactive, if so, recording and returning to mistake to the client Prompt message;Otherwise, the cancellation reason and log out time of second session object are set;By second session object from Removed in active user session list;And second session object is put into and forbidden in access session queue, complete described the The cancellation of two session objects.
The advantages of aspect that the present invention adds, will be set forth in part in the description, and will partly become from the following description Obtain substantially, or recognized by present invention practice.
Brief description of the drawings
Fig. 1 is a kind of schematic block diagram of the maintaining method for client session object that the embodiment of the present invention one provides;
Fig. 2 is a kind of schematic block diagram of the maintaining method for client session object that the embodiment of the present invention two provides;
Fig. 3 is a kind of indicative flowchart of the maintaining method of client session object in Fig. 2;
Fig. 4 is a kind of schematic diagram of the maintenance system for client session object that the embodiment of the present invention three provides.
Embodiment
The principle and feature of the present invention are described below in conjunction with accompanying drawing, the given examples are served only to explain the present invention, and It is non-to be used to limit the scope of the present invention.
Embodiment one
A kind of maintaining method 100 of client session object, as described in Figure 1, including:
Step 110, the log on request information for receiving and being sent according to client, generate session object parameter, session object Parameter includes ID, signature value and IP address.
Step 120, according to ID, open its corresponding event handling thread.
It whether there is the first meeting corresponding to ID in step 130, event handling thread retrieval activities user conversation list Object is talked about, if it is not, creating the second session object corresponding to session object parameter.
Step 140, when receiving the heartbeat packet of client transmission for the first time within the first default time limit, rebuild the second meeting Object is talked about, the first default time limit was more than the transmission cycle that client sends heartbeat packet.
Step 150, when the heartbeat for not receiving client transmission within the second default time limit more than the first default time limit Bao Shi, then nullify the second session object.
At this stage, set in the online transaction such as bill field, increasing user by cell phone application, terminal etc. It is standby to log in transaction platform, carry out various forms of transaction.Inevitably, management of the back-end server to mass users is one Huge engineering.Because transaction is related to property, the number one of each transaction participant is further related to, therefore, to each use Effective management of any transaction of the family during online transaction, it is a significant problem.The embodiment The various situations being likely to occur in process of exchange between client and server are take into account, including client logs in, network is different Disconnection is contacted between the client and server that often result in, establishment, reconstruction and destruction of session object when giving transaction etc. A series of session object management service mechanism, improve the efficiency of management and user network of the background server to user session object The efficiency of upper transaction, effective technical support is provided for the transaction of participant, and built good trading environment.
Embodiment two
A kind of maintaining method 100 of client session object, as shown in Fig. 2-Fig. 3, including:
Step 110, the log on request information for receiving and being sent according to client, generate session object parameter, session object Parameter includes ID, signature value and IP address.
Step 120, according to ID, open its corresponding event handling thread.
It whether there is the first meeting corresponding to ID in step 130, event handling thread retrieval activities user conversation list Object is talked about, if it is not, creating the second session object corresponding to session object parameter;If so, then judge signature value and the first session pair As whether corresponding signature value is consistent, if so, send the prompt message for whether forcing to log in client, when receiving client After the information that the pressure of return logs in, stop the first session object, create the second session object corresponding to session object parameter, when After the information for not forcing to log in for receiving client return, then exit and processing is logged in corresponding to log on request information, if it is not, then Sent to client and attempt to repeat the prompt message for logging in error.
Step 140, when receiving the heartbeat packet of client transmission for the first time within the first default time limit, rebuild the second meeting Object is talked about, the first default time limit was more than the transmission cycle that client sends heartbeat packet.
Step 150, when the heartbeat for not receiving client transmission within the second default time limit more than the first default time limit Bao Shi, then nullify the second session object.
Step 160, when receive client transmission when publishing solicited message, nullify the second session object, publish information Including ID and signature value.
It should be noted that the processing operation that step 130- steps 160 are actually carried out for event handling thread.When carry out weight Before building and nullifying, meeting event handling thread according to corresponding to being found the information such as ID, phase is carried out by the event handling thread Close the maintenance of session object.In addition, step 140- steps 160 are coordination, without sequencing, which step is carried out optionally Depending on.
Specifically, in step 130, the second session object corresponding to session object parameter is created, including:From session object mould Session object model is obtained in type list, ID, signature value and IP address are inputted into session object model;Signature value is added To using signature value as in the session list of keyword, and ID is added to using ID as in the session list of keyword; Session object model containing ID, signature value and IP address is added in persistent sessions queue, completes session object ginseng The establishment of second session object corresponding to number, the second session object is with including session object model, ID, signature value and IP Location.
Specifically, in step 140, rebuilding the second session object includes:
IP address in heartbeat packet, obtain its corresponding ID and signature value;From session object model list Session object model is obtained, IP address, ID and signature value are inputted into session object model;Signature value is added to signature It is worth in the session list for keyword, and ID is added to using ID as in the session list of keyword;It will contain useful Family ID, signature value and IP address session object model are added in persistent sessions queue, complete the reconstruction of the second session object.
In step 150 and step 160, the second session object is nullified, including:
According to ID, its corresponding event handling thread is opened;Event handling thread is according to signature value from signature value To obtain the second session object in the session list of keyword, judge whether the second session object is empty or in inactive shape State, if so, recording and the prompt message of mistake being returned to client;Otherwise, the cancellation reason and note of the second session object are set Sell the time;Second session object is removed from active user session list;And the second session object is put into and forbids accessing meeting Talk about in queue, complete the cancellation of the second session object.
It should be noted that the heartbeat packet in above-described embodiment one and embodiment two refers in client timing notice service The command word (signal or heartbeat frame) of one of device oneself network state oneself definition, sends to clothes according to certain time interval Business device, to ensure the validity of link.Similar to heartbeat, so being called heartbeat packet.
For example, when proper network connects, transmission cycle of heartbeat packet is to be sent once per 5s, i.e., every 5s, A clients Network application layer can send a heartbeat packet to server, and the first default time limit was 15s, and the second default time limit was 20s.If In 15s, server value has received only a heartbeat packet of A clients transmission, then server after current heartbeat packet is received, Session object corresponding to A clients can be rebuild, if in 20s, server does not here receive any A client The heartbeat packet of transmission, then server here thinks the thorough suspension over there of A clients, then server can actively nullify A visitors Session object corresponding to the end of family.
Embodiment three
A kind of maintenance system 200 of client session object, as shown in figure 4, including:
Connection server, for the log on request information for receiving and being sent according to client, generate session object parameter, meeting Words image parameter includes ID, signature value and IP address.
Application server, for the ID generated according to connection server, open its corresponding event handling thread, thing It whether there is the first session object corresponding to ID in part processing thread retrieval activities user conversation list, if it is not, creating meeting Talk about the second session object corresponding to image parameter;When the heartbeat packet for receiving client transmission for the first time within the first default time limit When, the second session object is rebuild, the first default time limit was more than the transmission cycle that client sends heartbeat packet;When pre- more than first If the second of time limit does not receive the heartbeat packet of client transmission in the default time limit, then the second session object is nullified.
Specifically, application server is additionally operable to:When receiving when publishing solicited message of client transmission, the second meeting is nullified Object is talked about, publishing information includes ID and signature value.
Application server is additionally operable to:If the first session object corresponding to ID in active user session list be present, Judge whether signature value signature value corresponding with the first session object is consistent;If so, send whether force what is logged in client Prompt message, after the information that the pressure for receiving client return logs in, stop the first session object, create session object ginseng Second session object corresponding to number, when receiving after not forcing the information logged in of client return, then exit log on request letter Processing is logged in corresponding to breath;Attempt to repeat the prompt message for logging in error if it is not, then sending to client.
Application server includes session object creating unit, and session object creating unit is used for from session object model list Middle acquisition session object model, session object model is inputted by ID, signature value and IP address;Signature value is added to label Name is worth in the session list for keyword, and ID is added to using ID as in the session list of keyword;It will contain The session object model of ID, signature value and IP address is added in persistent sessions queue, and it is corresponding to complete session object parameter The second session object establishment, the second session object includes session object model, ID, signature value and IP address.
Application server also includes session object reconstruction unit, and session object reconstruction unit is used for the IP in heartbeat packet Address, obtain its corresponding ID and signature value;Session object model is obtained from session object model list, by IP Location, ID and signature value input session object model;Signature value is added to using signature value as in the session list of keyword, And ID is added to using ID as in the session list of keyword;By the meeting containing ID, signature value and IP address Talk about object model to be added in persistent sessions queue, complete the reconstruction of the second session object.
Application server also includes session object and nullifies unit, and session object nullifies unit and is used to, according to ID, open Its corresponding event handling thread;Event handling thread obtains according to signature value from the session list using signature value as keyword Second session object, judge whether the second session object is empty or inactive, if so, recording and being returned to client The prompt message of mistake;Otherwise, the cancellation reason and log out time of the second session object are set;By the second session object from activity Removed in user conversation list;And the second session object is put into and forbidden in access session queue, complete the second session object Nullify.
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent substitution and improvements made etc., it should be included in the scope of the protection.

Claims (10)

  1. A kind of 1. maintaining method of client session object, it is characterised in that including:
    Step 1, the log on request information for receiving and being sent according to client, generate session object parameter, the session object ginseng Number includes ID, signature value and IP address;
    Step 2, according to the ID, open its corresponding event handling thread;
    With the presence or absence of first corresponding to the ID in step 3, the event handling thread retrieval activities user conversation list Session object, if it is not, creating the second session object corresponding to the session object parameter;
    Step 4, when receiving the heartbeat packet that the client is sent for the first time within the first default time limit, rebuild described second Session object, the described first default time limit are more than the transmission cycle that the client sends the heartbeat packet;
    Step 5, when the heart for not receiving the client within the second default time limit more than the described first default time limit and sending When jumping bag, then second session object is nullified.
  2. 2. the maintaining method of a kind of client session object according to claim 1, it is characterised in that methods described is also wrapped Include:
    Step 6, when receiving that the client sends when publishing solicited message, nullify second session object, it is described to step on Going out information includes the ID and the signature value.
  3. 3. the maintaining method of a kind of client session object according to claim 1, it is characterised in that the step 3 is also Including:
    If the first session object corresponding to the ID in active user session list be present, the signature value and institute are judged Whether consistent state signature value corresponding to the first session object;
    If so, the prompt message for whether forcing to log in is sent to the client, when the pressure for receiving the client return After the information logged in, stop first session object, create the second session object corresponding to the session object parameter, when connecing After receiving the information for not forcing to log in that the client returns, then exit and log in processing corresponding to the log on request information;
    Attempt to repeat the prompt message for logging in error if it is not, then sending to the client.
  4. 4. the maintaining method of a kind of client session object according to any one of claims 1 to 3, it is characterised in that described In step 3, the second session object corresponding to the establishment session object parameter, including:
    Session object model is obtained from session object model list, by the ID, the signature value and the IP address Input the session object model;
    The signature value is added to using signature value as in the session list of keyword, and the ID is added to user ID is in the session list of keyword;
    The session object model containing the ID, the signature value and the IP address is added to persistent sessions team In row, the establishment of the second session object corresponding to the session object parameter is completed, second session object includes the meeting Talk about object model, the ID, the signature value and the IP address.
  5. A kind of 5. maintaining method of client session object according to claim 2, it is characterised in that in the step 4, Reconstruction second session object includes:
    According to the IP address in the heartbeat packet, the ID and the signature value corresponding to it are obtained;
    Session object model is obtained from session object model list, by the IP address, the ID and the signature value Input the session object model;
    The signature value is added to using signature value as in the session list of keyword, and the ID is added to user ID is in the session list of keyword;
    The session object model containing the ID, the signature value and the IP address is added to persistent sessions team In row, the reconstruction of second session object is completed;
    In the step 5 and the step 6, cancellation second session object, including:
    According to the ID, its corresponding event handling thread is opened;
    The event handling thread obtains described second according to the signature value from the session list using signature value as keyword Session object, judge whether second session object is empty or inactive, if so, record and to the client Return to the prompt message of mistake;Otherwise, the cancellation reason and log out time of second session object are set;
    Second session object is removed from active user session list;
    And second session object is put into and forbidden in access session queue, complete the cancellation of second session object.
  6. A kind of 6. maintenance system of client session object, it is characterised in that including:
    Connection server, for the log on request information for receiving and being sent according to client, generate session object parameter, the meeting Words image parameter includes ID, signature value and IP address;
    Application server, for the ID generated according to the connection server, open its corresponding event handling line Journey, it whether there is the first session pair corresponding to the ID in the event handling thread retrieval activities user conversation list As if it is not, creating the second session object corresponding to the session object parameter;Received for the first time when within the first default time limit During the heartbeat packet that the client is sent, second session object is rebuild, the described first default time limit was more than the client Send the transmission cycle of the heartbeat packet;It is described when not received within the second default time limit more than the described first default time limit During the heartbeat packet that client is sent, then second session object is nullified.
  7. A kind of 7. maintenance system of client session object according to claim 6, it is characterised in that the application service Device is additionally operable to:
    When receiving when publishing solicited message of the client transmission, second session object is nullified, it is described to publish information Including the ID and the signature value.
  8. A kind of 8. maintenance system of client session object according to claim 6, it is characterised in that the application service Device is additionally operable to:
    If the first session object corresponding to the ID in active user session list be present, the signature value and institute are judged Whether consistent state signature value corresponding to the first session object;Believe if so, sending the prompting for whether forcing to log in the client Breath, after the information that the pressure for receiving the client return logs in, stop first session object, create the session Second session object corresponding to image parameter, when receiving after not forcing the information logged in of the client return, then exit Processing is logged in corresponding to the log on request information;Attempt to repeat the prompting for logging in error if it is not, then sending to the client Information.
  9. 9. according to a kind of maintenance system of any described client session object of claim 6 to 8, it is characterised in that described Application server includes session object creating unit;
    The session object creating unit, for obtaining session object model from session object model list, by the user ID, the signature value and the IP address input the session object model;The signature value is added to using signature value as pass In the session list of keyword, and the ID is added to using ID as in the session list of keyword;It will contain described The session object model of ID, the signature value and the IP address is added in persistent sessions queue, described in completion The establishment of second session object corresponding to session object parameter, second session object include the session object model, institute State ID, the signature value and the IP address.
  10. A kind of 10. maintenance system of client session object according to claim 7, it is characterised in that the application clothes Business device also includes session object reconstruction unit;
    The session object reconstruction unit, for the IP address in the heartbeat packet, obtain the ID corresponding to it With the signature value;Session object model is obtained from session object model list, by the IP address, the ID and institute State signature value and input the session object model;The signature value is added to using signature value as in the session list of keyword, And the ID is added to using ID as in the session list of keyword;The ID, the signature value will be contained It is added to the session object model of the IP address in persistent sessions queue, completes the weight of second session object Build;
    The application server also includes session object and nullifies unit;
    The session object nullifies unit, for according to the ID, opening its corresponding event handling thread;The event Processing thread obtains second session object according to the signature value from the session list using signature value as keyword, judges Whether second session object is empty or inactive, if so, record and carrying to client return mistake Show information;Otherwise, the cancellation reason and log out time of second session object are set;By second session object from activity Removed in user conversation list;And second session object is put into and forbidden in access session queue, complete second meeting Talk about the cancellation of object.
CN201710485848.1A 2017-06-23 2017-06-23 A kind of maintaining method and system of client session object Withdrawn CN107360054A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710485848.1A CN107360054A (en) 2017-06-23 2017-06-23 A kind of maintaining method and system of client session object

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710485848.1A CN107360054A (en) 2017-06-23 2017-06-23 A kind of maintaining method and system of client session object

Publications (1)

Publication Number Publication Date
CN107360054A true CN107360054A (en) 2017-11-17

Family

ID=60273946

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710485848.1A Withdrawn CN107360054A (en) 2017-06-23 2017-06-23 A kind of maintaining method and system of client session object

Country Status (1)

Country Link
CN (1) CN107360054A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109274662A (en) * 2018-09-06 2019-01-25 北京天元创新科技有限公司 Prevent CAS Server from passively destroying method, apparatus, server and the terminal of session
CN111193796A (en) * 2019-12-26 2020-05-22 深圳证券交易所 Session keeping method based on delay queue, server and readable storage medium
CN111756784A (en) * 2019-04-30 2020-10-09 北京京东尚科信息技术有限公司 Session method, session device, computer equipment and medium
CN116684467A (en) * 2023-08-02 2023-09-01 武汉吧哒科技股份有限公司 Data acquisition method, electronic device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060294241A1 (en) * 2005-06-24 2006-12-28 Sanjay Cherian Preserving sessions in a wireless network
CN101079827A (en) * 2006-06-22 2007-11-28 腾讯科技(深圳)有限公司 Email management method and system
CN102333080A (en) * 2011-08-02 2012-01-25 杭州迪普科技有限公司 Method and device for preventing message from attacking
CN103118092A (en) * 2013-01-24 2013-05-22 中国联合网络通信集团有限公司 Method and device for realizing single login
EP3171573B1 (en) * 2012-08-30 2019-08-07 Aerohive Networks, Inc. Internetwork authentication

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060294241A1 (en) * 2005-06-24 2006-12-28 Sanjay Cherian Preserving sessions in a wireless network
CN101079827A (en) * 2006-06-22 2007-11-28 腾讯科技(深圳)有限公司 Email management method and system
CN102333080A (en) * 2011-08-02 2012-01-25 杭州迪普科技有限公司 Method and device for preventing message from attacking
EP3171573B1 (en) * 2012-08-30 2019-08-07 Aerohive Networks, Inc. Internetwork authentication
CN103118092A (en) * 2013-01-24 2013-05-22 中国联合网络通信集团有限公司 Method and device for realizing single login

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109274662A (en) * 2018-09-06 2019-01-25 北京天元创新科技有限公司 Prevent CAS Server from passively destroying method, apparatus, server and the terminal of session
CN109274662B (en) * 2018-09-06 2021-06-04 北京天元创新科技有限公司 Method, device, server and terminal for preventing CAS server from passively destroying session
CN111756784A (en) * 2019-04-30 2020-10-09 北京京东尚科信息技术有限公司 Session method, session device, computer equipment and medium
CN111193796A (en) * 2019-12-26 2020-05-22 深圳证券交易所 Session keeping method based on delay queue, server and readable storage medium
CN116684467A (en) * 2023-08-02 2023-09-01 武汉吧哒科技股份有限公司 Data acquisition method, electronic device and storage medium
CN116684467B (en) * 2023-08-02 2023-10-27 武汉吧哒科技股份有限公司 Data acquisition method, electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN107360054A (en) A kind of maintaining method and system of client session object
CN106850746B (en) The method and device of smooth service upgrading
CN104023020B (en) TypeB messages for mobile device subscribe to supplying system and correlation method
CN104796396B (en) The method and medium of network agent layer for the application proxy based on strategy are provided
CN103905497B (en) Realize the method, apparatus and application platform of third-party application business website log
US8655837B2 (en) Data session notification means and method
US7151826B2 (en) Third party coaching for agents in a communication system
CN109428854A (en) It is a kind of based on wide and narrow strip fusion call processing method, apparatus and system
CN105245434B (en) A kind of information instant communication method
CN109995710A (en) A kind of lan device management system and method
CN109729228A (en) Artificial intelligence calling system
CN106572087A (en) Voice outbound system
US20140254788A1 (en) Communication between a mobile device and a call center
CN109598550A (en) A kind of Internet advertising put-on method and device
CN108023922A (en) A kind of method, apparatus and system for issuing and setting configuration data
CN104009960B (en) A kind of method and device for realizing cell-phone customer terminal instant messaging
CN102891828A (en) IMS user authentication method, equipment and system
CN104184656B (en) A kind of method for information display and application server
CN107066341A (en) Event Routing Framework and method between a kind of software module
CN103906058B (en) Web site management system obtains identifying code method and system
CN107547537A (en) Request message processing method, device, equipment and storage medium
CN107612735A (en) A kind of broadband On-line Fault processing method, server and user terminal
CN109688185A (en) It attends a banquet method for processing business, device, equipment and computer readable storage medium
CN103581271B (en) Determine method and apparatus, the system of pre-selected users
CN105933217B (en) Message synchronization method and platform, network server and adaptive server

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20171117

WW01 Invention patent application withdrawn after publication