CN104270427B - Conversation controlling method and session control device - Google Patents

Conversation controlling method and session control device Download PDF

Info

Publication number
CN104270427B
CN104270427B CN201410479793.XA CN201410479793A CN104270427B CN 104270427 B CN104270427 B CN 104270427B CN 201410479793 A CN201410479793 A CN 201410479793A CN 104270427 B CN104270427 B CN 104270427B
Authority
CN
China
Prior art keywords
session
target
server
terminal
conversation
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.)
Active
Application number
CN201410479793.XA
Other languages
Chinese (zh)
Other versions
CN104270427A (en
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.)
You Pu Information Technology Co Ltd Of Ufsoft
Original Assignee
You Pu Information Technology Co Ltd Of Ufsoft
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 You Pu Information Technology Co Ltd Of Ufsoft filed Critical You Pu Information Technology Co Ltd Of Ufsoft
Priority to CN201410479793.XA priority Critical patent/CN104270427B/en
Publication of CN104270427A publication Critical patent/CN104270427A/en
Application granted granted Critical
Publication of CN104270427B publication Critical patent/CN104270427B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a kind of conversation controlling method and a kind of session control device, wherein, the conversation controlling method includes:When terminal to server sends service conversation request, the service correlation information that the server contains according to the service conversation request received and the service conversation request bag, establish the target session on the terminal and distribute session identification and default memory block for the target session, wherein, the service correlation information includes conversation type, the conversation type includes interim conversation or persistent sessions, and the server establishes target interim conversation or target persistent sessions according to the conversation type.Pass through technical scheme, client can be made effectively to control the life cycle of session, and make it that session meets the transactional requirement of service logic and flow, while can also make session network environment it is bad in the case of, still can keep the continuity of session.

Description

Conversation controlling method and session control device
Technical field
The present invention relates to session technology field, is filled in particular to a kind of conversation controlling method and a kind of session control Put.
Background technology
Mobile solution equipment transmits data usually using Http agreements between client and service end, and Http agreements are Stateless procotol, after each client interacts with service end, all can network disconnect.
In the Mobile solution scene of complexity, business operation usually requires to carry out a series of procedures steps for having dependence Suddenly, and these steps will be realized by multiple network interaction, and therefore, stateless procotol needs to provide a kind of service logic State-control mechanism is to ensure that single business operation is completed in same transaction context.
All it is by client Cookie (Web server preserves one section of text to client) and Web clothes at present Similar Problems are handled using Http agreements between business device Session (session), are specially:Number is cached using client Cookie Session status is safeguarded according to, service end Session, same service logic flow is safeguarded by multiple network request to realize. But client Cookie and Web server Session technologies generally by different clients and Web server manufacturer Lai real It is existing, in the business scenario of complexity, the weak point of session control is still suffered from, is embodied in:
1st, session establishment and destroy generally controlled by Web server, it is difficult to the Life Cycle by service code to session Phase is effectively controlled;
2nd, session only provides the maintenance to data and state, can not meet the transactional requirement of service logic and flow;
3rd, session relies on the network environment of wireless communication technology (such as mobile network), thus, network environment connects for network The stability connect has considerable influence, it is often necessary to which substantial amounts of technical finesse solves the interruption of session and recovers problem.
Therefore, it is necessary to which a kind of new conversation controlling method, can make client carry out the life cycle of session effective Control, and make it that session meets the transactional requirement of service logic and flow, at the same can also make session in network environment not In the case of good, the continuity of session still can be kept.
The content of the invention
The present invention is based on above-mentioned technical problem, it is proposed that a kind of new technical scheme, can make client to session Life cycle effectively controlled, and cause session to meet the transactional requirement of service logic and flow, while can also Make session network environment it is bad in the case of, still can keep the continuity of session.
In view of this, an aspect of of the present present invention proposes a kind of conversation controlling method, including:Sent in terminal to server When service conversation is asked, the server contains according to the service conversation request received and the service conversation request bag Service correlation information, establish the target session on the terminal and distribute session identification for the target session and default deposit Storage area, wherein, the service correlation information includes conversation type, and the conversation type includes interim conversation or persistent sessions, with And the server establishes target interim conversation or target persistent sessions according to the conversation type.
In the technical scheme, asked, can made by sending the service conversation comprising service correlation information to server Server is that target session distributes the session identification related to business, this for by session identification by the business of the session and session It is associated, with progressively tracking of the realization to business, meets that service logic provides the foundation.Certainly, due to service correlation information Comprising conversation type, thus, different sessions is established in the conversation type request that server can be sent according to terminal, and according to not Same conversation type is that the session that will be established distributes different default memory blocks, to meet that the session of different user uses need Ask.
In the above-mentioned technical solutions, it is preferable that when the server establishes the target interim conversation, described preset is deposited Storage area is the volatile memory of the server;When the server establishes the target persistent sessions, described preset is deposited Storage area is the nonvolatile memory of the server;And when the server establishes the target interim conversation, if institute The session persistence for stating target interim conversation is more than or equal to preset durations, or the server is received from described The session turn-off request of terminal, then target interim conversation described in the server closing and remove in the volatile memory Session data;When the server establishes the target persistent sessions, if the server is received from the terminal Session turn-off request, then target persistent sessions described in the server closing and the session datas of the target persistent sessions is protected Deposit to the nonvolatile memory.
In the technical scheme, when server establishes target interim conversation, server is that the configuration of target interim conversation is easy The property lost memory (internal memory of such as server), so, after target interim conversation is closed or server powers off, server will Automatic releasing memory simultaneously removes all session datas in the target interim conversation, to mitigate the storage burden of server and improve The business processing speed of server, and when server establishes target persistent sessions, server configures for the target persistent sessions Nonvolatile memory (external memory of such as server), so, the session data of target persistent sessions will be permanent Preserve into server, even target persistent sessions are closed the session datas of target persistent sessions and will not be also eliminated, this Be advantageous to keep the continuity of session, terminal can be made to recover at any time and check the session data of the target persistent sessions;In addition, For target persistent sessions, server is when receiving the session turn-off request of terminal, just closes the target persistent sessions, This can make terminal control the closing of session according to real-time requirement compared to for actively closing session with server, be advantageous to full The service conversation use demand of sufficient terminal user, and for target interim conversation, it is effective that server can exceed session in session Phase (preset durations) or receive terminal actively initiate session turn-off request when, close the target interim conversation, this is not It terminal is controlled the closing of session according to real-time requirement, while session of the server in target interim conversation can also be made When time reaches the session term of validity, the target interim conversation is closed to mitigate the service conversation burden of server in time.
In the above-mentioned technical solutions, it is preferable that also include:In the terminal service conversation request is sent to the server When, the server judges whether be locked with the corresponding business datum of service conversation request, is yes in judged result When, the server, which is cancelled, establishes the target session, when judged result is no, business number described in the server locks According to, the target session is begun setting up, and business status indicator is distributed for the target session, with business shape described in real-time update State identifies, wherein, the service condition, which identifies business corresponding with the target session, to be associated.
In the technical scheme, when terminal to server sends service conversation request, server passes through judgement and business Whether business datum corresponding to session request has been locked, and determines whether to establish the target session according to judged result, this When can avoid multiple terminals from simultaneously and concurrently operating, same data are made an amendment and cause data collision.Such as:Terminal A with The server C in one Taobao shop establishes target session to buy one case dry fruit, at this moment, if under terminal B is also sent to server C Single session request is to buy same dry fruit, then server can first judge the dry fruit before response terminal B session request Whether number has been locked, if locked, may cause purchase conflict (i.e. the number of dry fruit may only remain a case, and When terminal A buys dry fruit, the number of dry fruit has turned into 0, and if server also corresponding terminal B also single session request and is built Vertical target session, then when terminal B is bought, the number of dry fruit may be still 1, and this results in server display terminal A and terminal B all Display is bought successfully, but actually terminal B purchases failure), thus, server will not establish the target session at current time, If be not locked out, illustrate that data collision will not be caused, server can establish the target session.
In addition, by distributing business status indicator for each target session, can be according to the operation flow real-time update industry Business status indicator, in real time business datum of the caching on operation flow, and after the completion of whole flow process, submit the business number of caching According to, by service condition mark labeled as submitting successfully, and session is closed after being confirmed by client, this can realize target session and Operation flow is associated, and the business datum for preventing from associating with operation flow will not be submitted repeatedly.Such as:In Mobile solution In submission preserve link, user can confirm to preserve and send request to server to submit business, and service end processing request is simultaneously Returning result, and in the bad environment of network state, user may be because network transmission time-out and can not timely be tied Fruit feeds back, thus may result in repetition and submit business datum, and can realize operation flow and meeting by service condition mark The association of words, provide transactional for business operation and support, i.e., after server process, which is submitted, asks, service condition is identified and marked To have been filed on success status, though afterwards client (terminal) do not receive network response and submit request again, server according to The submission state of same session, which can determine that, need not preserve the business datum again.
In the above-mentioned technical solutions, it is preferable that the service correlation information is also including the identifying of the terminal, the terminal Owning user mark and/or service identification, the server is according to the identifying of the terminal, the owning user of the terminal Mark and/or the service identification be that the target session distributes the session identification.
In the technical scheme, it is by the mark according to terminal, the mark of the owning user of terminal and/or service identification Target session distributes session identification, and the session identification can be made further to refine, allow session identification and business, terminal and/ Or user is related, this allows terminal to send multiple service conversations requests to server simultaneously, meanwhile, server can be made to exist According to session identification by session data according to target interim conversation and target persistent sessions classification preserve on the basis of, then by business, Terminal and/or user to realize the isolation of session, and ensure the session peace of different sessions to the further classification storage of session data Entirely.
In the above-mentioned technical solutions, it is preferable that when the terminal to the server send conversation type be persistent sessions Service conversation request when, the server judges in the current sessions of the terminal with the presence or absence of matching persistent sessions, when sentencing Disconnected result is when the matching persistent sessions being not present in the current sessions, and the server is established the target and persistently can Words, when judged result is the matching persistent sessions in the current sessions be present, terminal described in the server prompts is It is no to recover the target persistent sessions, wherein, the service identification of the matching persistent sessions contains with the service conversation request bag Service identification it is identical;And when the target session between the server and the terminal is the target persistent sessions, If the terminal detects that the target persistent sessions are in session off-line mode, by the session data to be sent of the terminal Preserve into the terminal, and when the detection target persistent sessions exit session off-line mode and enter session line model, The session data to be sent is sent to the server.
In the technical scheme, for conversation type is the target persistent sessions of persistent sessions, terminal may be because Certain reason loses the target persistent sessions as exited extremely, thus, when terminal initiates the industry that conversation type is persistent sessions During session request of being engaged in, server can judge to whether there is the service identification phase with service conversation request in the current sessions of terminal Same session, if it is not, target persistent sessions are established, if so, then prompt the user whether to recover the target persistent sessions, And when user's selection does not recover, remove the session data of the target persistent sessions automatically and create new target persistent sessions, When user selects to recover, server recovers the session status and session data before the target persistent sessions, to avoid repeating Create target persistent sessions;In addition, in ession for telecommunication, terminal may be because that network is bad or needs send batch number to be sent According to, and session off-line state is in, and when detecting that terminal is in session off-line state, by automatically by data to be sent Preserve to terminal, and operated when meeting telephone network is good automatically into session line model or by end user manual and passive During into session line model, the session data to be sent is automatically sent to server, it is possible to achieve the continuity of session, drop Influence of the low network to conversation continuity.
Another aspect of the present invention proposes a kind of session control device, including:Processing unit, positioned at the server On, when terminal to server sends service conversation request, according to the service conversation request received and the business The service correlation information that session request includes, establish the target session on the terminal and distribute session for the target session Mark and default memory block, wherein, the service correlation information includes conversation type, the conversation type including interim conversation or Persistent sessions, to establish target interim conversation or target persistent sessions according to the conversation type.
In the technical scheme, asked, can made by sending the service conversation comprising service correlation information to server Server is that target session distributes the session identification related to business, this for by session identification by the business of the session and session It is associated, with progressively tracking of the realization to business, meets that service logic provides the foundation.Certainly, due to service correlation information Comprising conversation type, thus, different sessions is established in the conversation type request that server can be sent according to terminal, and according to not Same conversation type is that the session that will be established distributes different default memory blocks, to meet that the session of different user uses need Ask.
In the above-mentioned technical solutions, it is preferable that the default memory block includes:The volatile memory of the server and The default memory block is the nonvolatile memory of the server, and when the server establishes the target interim conversation When, the default memory block is the volatile memory of the server, when the server establishes the target persistent sessions When, the default memory block is the nonvolatile memory of the server;And described device also includes:First closes list Member, on the server, when the server establishes the target interim conversation, if the meeting of the target interim conversation The words duration is more than or equal to preset durations, or the server receives the session closing from the terminal and asked Ask, then close the target interim conversation and remove the session data in the volatile memory;Second closing unit, is located at On the server, when the server establishes the target persistent sessions, if the server was received from the end The session turn-off request at end, then close the target persistent sessions and preserve the session data of the target persistent sessions to institute State nonvolatile memory.
In the technical scheme, when server establishes target interim conversation, server is that the configuration of target interim conversation is easy The property lost memory (internal memory of such as server), so, after target interim conversation is closed or server powers off, server will Automatic releasing memory simultaneously removes all session datas in the target interim conversation, to mitigate the storage burden of server and improve The business processing speed of server, and when server establishes target persistent sessions, server configures for the target persistent sessions Nonvolatile memory (external memory of such as server), so, the session data of target persistent sessions will be permanent Preserve into server, even target persistent sessions are closed the session datas of target persistent sessions and will not be also eliminated, this Be advantageous to keep the continuity of session, terminal can be made to recover at any time and check the session data of the target persistent sessions;In addition, For target persistent sessions, server is when receiving the session turn-off request of terminal, just closes the target persistent sessions, This can make terminal control the closing of session according to real-time requirement compared to for actively closing session with server, be advantageous to full The service conversation use demand of sufficient terminal user, and for target interim conversation, it is effective that server can exceed session in session Phase (preset durations) or receive terminal actively initiate session turn-off request when, close the target interim conversation, this is not It terminal is controlled the closing of session according to real-time requirement, while session of the server in target interim conversation can also be made When time reaches the session term of validity, the target interim conversation is closed to mitigate the service conversation burden of server in time.
In the above-mentioned technical solutions, it is preferable that also include:Judging unit, on the server, the terminal to When the server sends service conversation request, whether judgement has been locked with the corresponding business datum of service conversation request Determine, and the processing unit is used for:In judged result for when being, the target session is established in cancellation, is no in judged result When, the business datum is locked, begins setting up the target session, and business status indicator is distributed for the target session, with Service condition described in real-time update identifies, wherein, the service condition, which identifies business corresponding with the target session, to be associated.
In the technical scheme, when terminal to server sends service conversation request, server passes through judgement and business Whether business datum corresponding to session request has been locked, and determines whether to establish the target session according to judged result, this When can avoid multiple terminals from simultaneously and concurrently operating, same data are made an amendment and cause data collision.Such as:Terminal A with The server C in one Taobao shop establishes target session to buy one case dry fruit, at this moment, if under terminal B is also sent to server C Single session request is to buy same dry fruit, then server can first judge the dry fruit before response terminal B session request Whether number has been locked, if locked, may cause purchase conflict (i.e. the number of dry fruit may only remain a case, and When terminal A buys dry fruit, the number of dry fruit has turned into 0, and if server also corresponding terminal B also single session request and is built Vertical target session, then when terminal B is bought, the number of dry fruit may be still 1, and this results in server display terminal A and terminal B all Display is bought successfully, but actually terminal B purchases failure), thus, server will not establish the target session at current time, If be not locked out, illustrate that data collision will not be caused, server can establish the target session.
In addition, by distributing business status indicator for each target session, can be according to the operation flow real-time update industry Business status indicator, in real time business datum of the caching on operation flow, and after the completion of whole flow process, submit the business number of caching According to, by service condition mark labeled as submitting successfully, and session is closed after being confirmed by client, this can realize target session and Operation flow is associated, and the business datum for preventing from associating with operation flow will not be submitted repeatedly.Such as:In Mobile solution In submission preserve link, user can confirm to preserve and send request to server to submit business, and service end processing request is simultaneously Returning result, and in the bad environment of network state, user may be because network transmission time-out and can not timely be tied Fruit feeds back, thus may result in repetition and submit business datum, and can realize operation flow and meeting by service condition mark The association of words, provide transactional for business operation and support, i.e., after server process, which is submitted, asks, service condition is identified and marked To have been filed on success status, though afterwards client (terminal) do not receive network response and submit request again, server according to The submission state of same session, which can determine that, need not preserve the business datum again.
In the above-mentioned technical solutions, it is preferable that the service correlation information is also including the identifying of the terminal, the terminal Owning user mark and/or service identification, and the processing unit is specifically used for:According to the mark of the terminal, institute It is that the target session distributes the session identification to state the mark of the owning user of terminal and/or the service identification.
In the technical scheme, it is by the mark according to terminal, the mark of the owning user of terminal and/or service identification Target session distributes session identification, and the session identification can be made further to refine, allow session identification and business, terminal and/ Or user is related, this allows terminal to send multiple service conversations requests to server simultaneously, meanwhile, server can be made to exist According to session identification by session data according to target interim conversation and target persistent sessions classification preserve on the basis of, then by business, Terminal and/or user to realize the isolation of session, and ensure the session peace of different sessions to the further classification storage of session data Entirely.
In the above-mentioned technical solutions, it is preferable that the judging unit is additionally operable to:When the terminal is sent to the server When conversation type is asked for the service conversation of persistent sessions, judge in the current sessions of the terminal with the presence or absence of matching persistently meeting Words, the processing unit are additionally operable to:When judged result is that the matching persistent sessions are not present in the current sessions, establish The target persistent sessions, when judged result is the matching persistent sessions in the current sessions be present, prompt the end Whether end recovers the target persistent sessions, wherein, the service identification of the matching persistent sessions is asked with the service conversation Comprising service identification it is identical;And described device also includes:Storage unit, the mesh between the server and the terminal When rotating savings words are the target persistent sessions, if the terminal detects that the target persistent sessions are in session off-line mode, Then the session data to be sent of the terminal is preserved into the terminal, transmitting element, detecting the target persistent sessions When exiting session off-line mode and entering session line model, the session data to be sent is sent to the server.
In the technical scheme, for conversation type is the target persistent sessions of persistent sessions, terminal may be because Certain reason loses the target persistent sessions as exited extremely, thus, when terminal initiates the industry that conversation type is persistent sessions During session request of being engaged in, server can judge to whether there is the service identification phase with service conversation request in the current sessions of terminal Same session, if it is not, target persistent sessions are established, if so, then prompt the user whether to recover the target persistent sessions, And when user's selection does not recover, remove the session data of the target persistent sessions automatically and create new target persistent sessions, When user selects to recover, server recovers the session status and session data before the target persistent sessions, to avoid repeating Create target persistent sessions;In addition, in ession for telecommunication, terminal may be because that network is bad or needs send batch number to be sent According to, and session off-line state is in, and when detecting that terminal is in session off-line state, by automatically by data to be sent Preserve to terminal, and operated when meeting telephone network is good automatically into session line model or by end user manual and passive During into session line model, the session data to be sent is automatically sent to server, it is possible to achieve the continuity of session, drop Influence of the low network to conversation continuity.
Pass through above-mentioned technical proposal, the life cycle of terminal-pair session can be made effectively to be controlled, and cause session Meet the transactional requirement of service logic and flow, at the same can also make session network environment it is bad in the case of, still The continuity of session can be kept.
Brief description of the drawings
Fig. 1 shows the schematic flow sheet of conversation controlling method according to an embodiment of the invention;
Fig. 2 shows the structural representation of session control device according to an embodiment of the invention;
Fig. 3 A show it is according to an embodiment of the invention by client and server group into the structure of conversational system show It is intended to;
Fig. 3 B show the structural representation of the storage content of the conversation controller in Fig. 3 A;
Fig. 3 C show the structural representation of the storage content of the session memory in Fig. 3 A;
Fig. 4 shows the schematic flow sheet of conversation controlling method according to another embodiment of the invention;
Fig. 5 shows the schematic flow sheet of conversation controlling method according to still another embodiment of the invention;
Fig. 6 shows the schematic flow sheet of conversation controlling method according to still a further embodiment;
Fig. 7 shows the schematic flow sheet of conversation controlling method according to still a further embodiment.
Embodiment
It is below in conjunction with the accompanying drawings and specific real in order to be more clearly understood that the above objects, features and advantages of the present invention Mode is applied the present invention is further described in detail.It should be noted that in the case where not conflicting, the implementation of the application Feature in example and embodiment can be mutually combined.
Many details are elaborated in the following description to facilitate a thorough understanding of the present invention, still, the present invention may be used also To be different from other modes described here using other to implement, therefore, protection scope of the present invention is not by described below Specific embodiment limitation.
Fig. 1 shows the schematic flow sheet of conversation controlling method according to an embodiment of the invention.
As shown in figure 1, conversation controlling method according to an embodiment of the invention, including:Step 102, in terminal to service When device sends service conversation request, the server please according to the service conversation request received and the service conversation Seek the service correlation information included, establish on the terminal target session and for the target session distribute session identification and Default memory block, wherein, the service correlation information includes conversation type, and the conversation type includes interim conversation or persistently meeting Words, and the server establish target interim conversation or target persistent sessions according to the conversation type.
In the technical scheme, asked, can made by sending the service conversation comprising service correlation information to server Server is that target session distributes the session identification related to business, this for by session identification by the business of the session and session It is associated, with progressively tracking of the realization to business, meets that service logic provides the foundation.Certainly, due to service correlation information Comprising conversation type, thus, different sessions is established in the conversation type request that server can be sent according to terminal, and according to not Same conversation type is that the session that will be established distributes different default memory blocks, to meet that the session of different user uses need Ask.
In the above-mentioned technical solutions, it is preferable that when the server establishes the target interim conversation, described preset is deposited Storage area is the volatile memory of the server;When the server establishes the target persistent sessions, described preset is deposited Storage area is the nonvolatile memory of the server;And when the server establishes the target interim conversation, if institute The session persistence for stating target interim conversation is more than or equal to preset durations, or the server is received from described The session turn-off request of terminal, then target interim conversation described in the server closing and remove in the volatile memory Session data;When the server establishes the target persistent sessions, if the server is received from the terminal Session turn-off request, then target persistent sessions described in the server closing and the session datas of the target persistent sessions is protected Deposit to the nonvolatile memory.
In the technical scheme, when server establishes target interim conversation, server is that the configuration of target interim conversation is easy The property lost memory (internal memory of such as server), so, after target interim conversation is closed or server powers off, server will Automatic releasing memory simultaneously removes all session datas in the target interim conversation, to mitigate the storage burden of server and improve The business processing speed of server, and when server establishes target persistent sessions, server configures for the target persistent sessions Nonvolatile memory (external memory of such as server), so, the session data of target persistent sessions will be permanent Preserve into server, even target persistent sessions are closed the session datas of target persistent sessions and will not be also eliminated, this Be advantageous to keep the continuity of session, terminal can be made to recover at any time and check the session data of the target persistent sessions;In addition, For target persistent sessions, server is when receiving the session turn-off request of terminal, just closes the target persistent sessions, This can make terminal control the closing of session according to real-time requirement compared to for actively closing session with server, be advantageous to full The service conversation use demand of sufficient terminal user, and for target interim conversation, it is effective that server can exceed session in session Phase (preset durations) or receive terminal actively initiate session turn-off request when, close the target interim conversation, this is not It terminal is controlled the closing of session according to real-time requirement, while session of the server in target interim conversation can also be made When time reaches the session term of validity, the target interim conversation is closed to mitigate the service conversation burden of server in time.
In the above-mentioned technical solutions, it is preferable that also include:In the terminal service conversation request is sent to the server When, the server judges whether be locked with the corresponding business datum of service conversation request, is yes in judged result When, the server, which is cancelled, establishes the target session, when judged result is no, business number described in the server locks According to, the target session is begun setting up, and business status indicator is distributed for the target session, with business shape described in real-time update State identifies, wherein, the service condition, which identifies business corresponding with the target session, to be associated.
In the technical scheme, when terminal to server sends service conversation request, server passes through judgement and business Whether business datum corresponding to session request has been locked, and determines whether to establish the target session according to judged result, this When can avoid multiple terminals from simultaneously and concurrently operating, same data are made an amendment and cause data collision.Such as:Terminal A with The server C in one Taobao shop establishes target session to buy one case dry fruit, at this moment, if under terminal B is also sent to server C Single session request is to buy same dry fruit, then server can first judge the dry fruit before response terminal B session request Whether number has been locked, if locked, may cause purchase conflict (i.e. the number of dry fruit may only remain a case, and When terminal A buys dry fruit, the number of dry fruit has turned into 0, and if server also corresponding terminal B also single session request and is built Vertical target session, then when terminal B is bought, the number of dry fruit may be still 1, and this results in server display terminal A and terminal B all Display is bought successfully, but actually terminal B purchases failure), thus, server will not establish the target session at current time, If be not locked out, illustrate that data collision will not be caused, server can establish the target session.
In addition, by distributing business status indicator for each target session, can be according to the operation flow real-time update industry Business status indicator, in real time business datum of the caching on operation flow, and after the completion of whole flow process, submit the business number of caching According to, by service condition mark labeled as submitting successfully, and session is closed after being confirmed by client, this can realize target session and Operation flow is associated, and the business datum for preventing from associating with operation flow will not be submitted repeatedly.Such as:In Mobile solution In submission preserve link, user can confirm to preserve and send request to server to submit business, and service end processing request is simultaneously Returning result, and in the bad environment of network state, user may be because network transmission time-out and can not timely be tied Fruit feeds back, thus may result in repetition and submit business datum, and can realize operation flow and meeting by service condition mark The association of words, provide transactional for business operation and support, i.e., after server process, which is submitted, asks, service condition is identified and marked To have been filed on success status, though afterwards client (terminal) do not receive network response and submit request again, server according to The submission state of same session, which can determine that, need not preserve the business datum again.
In the above-mentioned technical solutions, it is preferable that the service correlation information is also including the identifying of the terminal, the terminal Owning user mark and/or service identification, the server is according to the identifying of the terminal, the owning user of the terminal Mark and/or the service identification be that the target session distributes the session identification.
In the technical scheme, it is by the mark according to terminal, the mark of the owning user of terminal and/or service identification Target session distributes session identification, and the session identification can be made further to refine, allow session identification and business, terminal and/ Or user is related, this allows terminal to send multiple service conversations requests to server simultaneously, meanwhile, server can be made to exist According to session identification by session data according to target interim conversation and target persistent sessions classification preserve on the basis of, then by business, Terminal and/or user to realize the isolation of session, and ensure the session peace of different sessions to the further classification storage of session data Entirely.
In the above-mentioned technical solutions, it is preferable that when the terminal to the server send conversation type be persistent sessions Service conversation request when, the server judges in the current sessions of the terminal with the presence or absence of matching persistent sessions, when sentencing Disconnected result is when the matching persistent sessions being not present in the current sessions, and the server is established the target and persistently can Words, when judged result is the matching persistent sessions in the current sessions be present, terminal described in the server prompts is It is no to recover the target persistent sessions, wherein, the service identification of the matching persistent sessions contains with the service conversation request bag Service identification it is identical;And when the target session between the server and the terminal is the target persistent sessions, If the terminal detects that the target persistent sessions are in session off-line mode, by the session data to be sent of the terminal Preserve into the terminal, and when the detection target persistent sessions exit session off-line mode and enter session line model, The session data to be sent is sent to the server.
In the technical scheme, for conversation type is the target persistent sessions of persistent sessions, terminal may be because Certain reason loses the target persistent sessions as exited extremely, thus, when terminal initiates the industry that conversation type is persistent sessions During session request of being engaged in, server can judge to whether there is the service identification phase with service conversation request in the current sessions of terminal Same session, if it is not, target persistent sessions are established, if so, then prompt the user whether to recover the target persistent sessions, And when user's selection does not recover, remove the session data of the target persistent sessions automatically and create new target persistent sessions, When user selects to recover, server recovers the session status and session data before the target persistent sessions, to avoid repeating Create target persistent sessions;In addition, in ession for telecommunication, terminal may be because that network is bad or needs send batch number to be sent According to, and session off-line state is in, and when detecting that terminal is in session off-line state, by automatically by data to be sent Preserve to terminal, and operated when meeting telephone network is good automatically into session line model or by end user manual and passive During into session line model, the session data to be sent is automatically sent to server, it is possible to achieve the continuity of session, drop Influence of the low network to conversation continuity.
Fig. 2 shows the structural representation of session control device according to an embodiment of the invention.
As shown in Fig. 2 session control according to an embodiment of the invention fills 200, including:Processing unit 202, positioned at described On server, when terminal to server sends service conversation request, according to the service conversation request received and institute The service correlation information that service conversation request bag contains is stated, the target session on the terminal is established and divides for the target session With session identification and default memory block, wherein, the service correlation information includes conversation type, and the conversation type includes interim Session or persistent sessions, to establish target interim conversation or target persistent sessions according to the conversation type.
In the technical scheme, asked, can made by sending the service conversation comprising service correlation information to server Server is that target session distributes the session identification related to business, this for by session identification by the business of the session and session It is associated, with progressively tracking of the realization to business, meets that service logic provides the foundation.Certainly, due to service correlation information Comprising conversation type, thus, different sessions is established in the conversation type request that server can be sent according to terminal, and according to not Same conversation type is that the session that will be established distributes different default memory blocks, to meet that the session of different user uses need Ask.
In the above-mentioned technical solutions, it is preferable that the default memory block includes:The volatile memory of the server and The default memory block is the nonvolatile memory of the server, and when the server establishes the target interim conversation When, the default memory block is the volatile memory of the server, when the server establishes the target persistent sessions When, the default memory block is the nonvolatile memory of the server;And described device also includes:First closes list Member 204, on the server, when the server establishes the target interim conversation, if the target interim conversation Session persistence be more than or equal to preset durations, or the server receives the session from the terminal and closed Request, then close the target interim conversation and remove the session data in the volatile memory;Second closing unit 206, on the server, when the server establishes the target persistent sessions, come if the server receives From the session turn-off request of the terminal, then the target persistent sessions are closed and by the session data of the target persistent sessions Preserve to the nonvolatile memory.
In the technical scheme, when server establishes target interim conversation, server is that the configuration of target interim conversation is easy The property lost memory (internal memory of such as server), so, after target interim conversation is closed or server powers off, server will Automatic releasing memory simultaneously removes all session datas in the target interim conversation, to mitigate the storage burden of server and improve The business processing speed of server, and when server establishes target persistent sessions, server configures for the target persistent sessions Nonvolatile memory (external memory of such as server), so, the session data of target persistent sessions will be permanent Preserve into server, even target persistent sessions are closed the session datas of target persistent sessions and will not be also eliminated, this Be advantageous to keep the continuity of session, terminal can be made to recover at any time and check the session data of the target persistent sessions;In addition, For target persistent sessions, server is when receiving the session turn-off request of terminal, just closes the target persistent sessions, This can make terminal control the closing of session according to real-time requirement compared to for actively closing session with server, be advantageous to full The service conversation use demand of sufficient terminal user, and for target interim conversation, it is effective that server can exceed session in session Phase (preset durations) or receive terminal actively initiate session turn-off request when, close the target interim conversation, this is not It terminal is controlled the closing of session according to real-time requirement, while session of the server in target interim conversation can also be made When time reaches the session term of validity, the target interim conversation is closed to mitigate the service conversation burden of server in time.
In the above-mentioned technical solutions, it is preferable that also include:Judging unit 208, on the server, at the end Hold to the server send service conversation request when, judge with the corresponding business datum of service conversation request whether by Locking, and the processing unit 202 are used for:In judged result for when being, the target session is established in cancellation, in judged result For it is no when, lock the business datum, begin setting up the target session, and service condition mark is distributed for the target session Know, identified with service condition described in real-time update, wherein, the service condition identifies business phase corresponding with the target session Association.
In the technical scheme, when terminal to server sends service conversation request, server passes through judgement and business Whether business datum corresponding to session request has been locked, and determines whether to establish the target session according to judged result, this When can avoid multiple terminals from simultaneously and concurrently operating, same data are made an amendment and cause data collision.Such as:Terminal A with The server C in one Taobao shop establishes target session to buy one case dry fruit, at this moment, if under terminal B is also sent to server C Single session request is to buy same dry fruit, then server can first judge the dry fruit before response terminal B session request Whether number has been locked, if locked, may cause purchase conflict (i.e. the number of dry fruit may only remain a case, and When terminal A buys dry fruit, the number of dry fruit has turned into 0, and if server also corresponding terminal B also single session request and is built Vertical target session, then when terminal B is bought, the number of dry fruit may be still 1, and this results in server display terminal A and terminal B all Display is bought successfully, but actually terminal B purchases failure), thus, server will not establish the target session at current time, If be not locked out, illustrate that data collision will not be caused, server can establish the target session.
In addition, by distributing business status indicator for each target session, can be according to the operation flow real-time update industry Business status indicator, in real time business datum of the caching on operation flow, and after the completion of whole flow process, submit the business number of caching According to, by service condition mark labeled as submitting successfully, and session is closed after being confirmed by client, this can realize target session and Operation flow is associated, and the business datum for preventing from associating with operation flow will not be submitted repeatedly.Such as:In Mobile solution In submission preserve link, user can confirm to preserve and send request to server to submit business, and service end processing request is simultaneously Returning result, and in the bad environment of network state, user may be because network transmission time-out and can not timely be tied Fruit feeds back, thus may result in repetition and submit business datum, and can realize operation flow and meeting by service condition mark The association of words, provide transactional for business operation and support, i.e., after server process, which is submitted, asks, service condition is identified and marked To have been filed on success status, though afterwards client (terminal) do not receive network response and submit request again, server according to The submission state of same session, which can determine that, need not preserve the business datum again.
In the above-mentioned technical solutions, it is preferable that the service correlation information is also including the identifying of the terminal, the terminal Owning user mark and/or service identification, and the processing unit 202 is specifically used for:According to the mark of the terminal, The mark of the owning user of the terminal and/or the service identification are that the target session distributes the session identification.
In the technical scheme, it is by the mark according to terminal, the mark of the owning user of terminal and/or service identification Target session distributes session identification, and the session identification can be made further to refine, allow session identification and business, terminal and/ Or user is related, this allows terminal to send multiple service conversations requests to server simultaneously, meanwhile, server can be made to exist According to session identification by session data according to target interim conversation and target persistent sessions classification preserve on the basis of, then by business, Terminal and/or user to realize the isolation of session, and ensure the session peace of different sessions to the further classification storage of session data Entirely.
In the above-mentioned technical solutions, it is preferable that the judging unit 208 is additionally operable to:When the terminal is to the server When sending the service conversation request that conversation type is persistent sessions, judge to hold with the presence or absence of matching in the current sessions of the terminal Long session, the processing unit 202 are additionally operable to:When judged result is that the matching persistent sessions are not present in the current sessions When, the target persistent sessions are established, when judged result is the matching persistent sessions in the current sessions be present, are prompted Whether the terminal recovers the target persistent sessions, wherein, the service identification of the matching persistent sessions and the business meeting The service identification that words request bag contains is identical;And described device also includes:Storage unit 210, when the server and the end When target session between end is the target persistent sessions, if the terminal detects that the target persistent sessions are in session Off-line mode, then the session data to be sent of the terminal is preserved into the terminal, transmitting element 212, described in detection When target persistent sessions exit session off-line mode and enter session line model, the session data to be sent is sent to described Server.
In the technical scheme, for conversation type is the target persistent sessions of persistent sessions, terminal may be because Certain reason loses the target persistent sessions as exited extremely, thus, when terminal initiates the industry that conversation type is persistent sessions During session request of being engaged in, server can judge to whether there is the service identification phase with service conversation request in the current sessions of terminal Same session, if it is not, target persistent sessions are established, if so, then prompt the user whether to recover the target persistent sessions, And when user's selection does not recover, remove the session data of the target persistent sessions automatically and create new target persistent sessions, When user selects to recover, server recovers the session status and session data before the target persistent sessions, to avoid repeating Create target persistent sessions;In addition, in ession for telecommunication, terminal may be because that network is bad or needs send batch number to be sent According to, and session off-line state is in, and when detecting that terminal is in session off-line state, by automatically by data to be sent Preserve to terminal, and operated when meeting telephone network is good automatically into session line model or by end user manual and passive During into session line model, the session data to be sent is automatically sent to server, it is possible to achieve the continuity of session, drop Influence of the low network to conversation continuity.
Fig. 3 A show it is according to an embodiment of the invention by client and server group into the structure of conversational system show It is intended to;Fig. 3 B show the structural representation of the storage content of the conversation controller in Fig. 3 A;Fig. 3 C show the meeting in Fig. 3 A Talk about the structural representation of the storage content of memory.
Technical scheme is described in detail below in conjunction with Fig. 3 A to Fig. 3 C.
As shown in Figure 3A, it is according to an embodiment of the invention by client and server group into conversational system 300, bag Include:Client 302 (i.e. terminal) and server 304, wherein, server 304 also includes:Conversation controller 3042 and session data Memory 3044, and conversation controller 3042 is used for the service conversation request at customer in response end 302, to establish target session and be Target session distributes session identification, and the session identification associates with the service logic and operation flow of session, thus, server 304 service conversation at customer in response end 302 is asked, and after establishing target session, client 302 is sent out to server 304 every time When sending service request data, session identification can all be sent to conversation controller 3042, so that server 304 is according to session identification Target session is made a distinction, in addition, session data memory 3044 is used for all of the session identification and the target session Session data carries out corresponding storage.
In addition, in practical application scene, different business modules server end may by different serviced components Lai Service is provided, and if different components all operates in same service processes and shares single session, then it is difficult to ensure that different moulds The security isolation of business datum between block, thus, conversation controller 3042 in the present embodiment are making a distinction to conversation type On the basis of, session identification is distributed (such as Fig. 3 B institutes for target session according to the mark of terminal, the mark of user and/or service identification Show), and independent session storage region is distributed for each session in session data memory 3044, by the meeting of each session Words data carry out corresponding storage (as shown in Figure 3 C) with session identification, and this causes same client can as needed while Shen Please create multiple sessions, and different business service components can also hold independent session respectively, with realize the session of safety every From.It is specially:After conversation type is divided into target interim conversation and target persistent sessions by conversation controller 3042, according to terminal Mark, the mark of user and/or service identification be respectively that target interim conversation and target persistent sessions distribute different sessions Mark and session status, to be that different sessions distribute different session identifications (as shown in Figure 3 B) with realizing clear and rational, and The session status (such as open, close, submitting) of real-time update different sessions, and the session status can pass through the business of session Status indicator embodies, and session data memory 3044 is then responsible for safeguarding the data cached of session, according to conversation type (target Interim conversation and target persistent sessions), it is divided into interim conversation data and persistent sessions data by data cached, and by different meetings Talk about data cached (i.e. session data) and carry out corresponding storage with session identification, to realize the security isolation of different sessions (such as Fig. 3 C It is shown), wherein, interim conversation data storage in the internal memory of server, in the permanent of server deposit by persistent sessions data storage In storage media.
Fig. 4 shows the schematic flow sheet of conversation controlling method according to another embodiment of the invention.
As shown in figure 4, conversation controlling method according to another embodiment of the invention, including:
Step 402, when client (terminal) initiates service conversation request, the conversation controller of server end responds the industry Business session request, create target session and simultaneously identified for target session configuration session.
Step 404, when the conversation controller of server end creates target session, conversation controller controls the session of server Data storage cell is the default memory block of target session configuration, is specially:When target session is target interim conversation, session Data storage cell is the volatile memory (such as internal memory) of the target interim conversation configuration server, when target session is target During persistent sessions, session map is (i.e. permanent for the nonvolatile memory of the target persistent sessions configuration server Property storage medium).
Step 406, client preserves the session identification that session map returns,
Step 408, client sends service data request to server component and (includes business when performing business operation Mark).
Step 410, server component receives the service data request, and at the service data request to receiving Reason.
Step 412, conversation controller receives the result of service data request, updates the service condition of the business operation Identify and the result is cached by data storage cell.
Step 414, client receives the result from conversation controller, judges whether the business operation terminates, and In judged result when being, to perform step 416, when judged result is no, step 408 is re-executed.
Step 416, after judging that the business operation terminates, user end to server sends session turn-off request, with application Close the target session.
Step 418, server closes the target session when receiving the session turn-off request of client, and if should Target session is target interim conversation, and server can also remove the session data of the target interim conversation.
Fig. 5 shows the schematic flow sheet of conversation controlling method according to still another embodiment of the invention.
As shown in figure 5, conversation controlling method according to still another embodiment of the invention, including:
Step 502, user end to server sends service conversation request, and target session is established with request.
Step 504, server judges conversation type that the service conversation request bag contains for interim conversation or persistent sessions, If the conversation type is persistent sessions, step 506 is performed, conversely, performing step 512.
Step 506, it is persistent sessions in the conversation type, server creates target persistent sessions.
Step 508, server is that the target persistent sessions distribute nonvolatile memory (i.e. persistent storage area).
Step 510, for server when receiving the service conversation data from client, whether real-time judge receives the visitor The session turn-off request that family end is sent, if it is, close the target persistent sessions, and by the session number of the target persistent sessions According to preservation to nonvolatile memory.
Step 512, when the conversation type is interim conversation, server creates target interim conversation.
Step 514, server is that the target interim conversation distributes volatile memory (i.e. scratchpad area (SPA), such as server Internal memory).
Step 516, server is when receiving the service conversation data from client, the real-time judge target interim conversation Session persistence whether exceed the session term of validity (whether being more than or equal to preset durations), if it is, or if Server receives the session turn-off request of client transmission, then closes the target interim conversation and remove volatile memory In session data.
Fig. 6 shows the schematic flow sheet of conversation controlling method according to still a further embodiment.
As shown in fig. 6, conversation controlling method according to still a further embodiment, including:
Step 602, user end to server sends service conversation request, and the target associated with operation flow is created with application Session.
Step 604, server judges whether be locked with the corresponding business datum of service conversation request, and is judging As a result it is when being, to perform step 606;Otherwise, step 608 is performed.
Step 606, the target session is established for when being, server is cancelled in judged result, and returns and cancel to client As a result.
Step 608, when judged result is no, the server locks business datum, the target session is begun setting up, and Business status indicator is distributed for target session, is identified with real-time update service condition, wherein, service condition mark and the target Business is associated corresponding to session.
Step 610, target session establish complete when, client is by operation flow step-by-step processing, in order to carry out substep Submit.
Step 612, client submits the operation flow by managing step by step everywhere successively.
Step 614, server judges that the service condition of the target session identifies whether to be marked as submitting (i.e. session shape Whether state is to have been filed on), if it is, performing step 618;If it is not, then perform step 616.
Step 616, when the session status is not to have been filed on state, server judges whether to have preserved the target session most Whole business datum, and in judged result when being, to perform step 618, when judged result is no, re-execute step 612.
Step 618, if it is judged that successfully to preserve the target session final service data or the session status is Have been filed on, then close the target session.
Fig. 7 shows the schematic flow sheet of conversation controlling method according to still a further embodiment.
As shown in fig. 7, conversation controlling method according to still a further embodiment, including:
Step 702, client (terminal) sends conversation type to server and asked for the service conversation of persistent sessions, with Shen It please create target persistent sessions.
Step 704, server judges to whether there is matching persistent sessions (matching persistent sessions in the current sessions of client Service identification it is identical with the service identification that service conversation request bag contains), if it is, perform step 706;If it is not, then hold Row step 710.
Step 706, when judged result is matching persistent sessions in current sessions be present, whether server prompts client Recover the target persistent sessions, if client selection is to perform step 716;Otherwise, step 708 is performed.
Step 708, server removes the session data of the target persistent sessions.
Step 710, when judged result is that matching persistent sessions are not present in current sessions, it is lasting that server establishes target Session.
Step 712, the target persistent sessions create complete when, if client detect the target persistent sessions due to The network terminal and be forced into session off-line mode or according to the order received actively open session off-line mode (client need When transmitting batch data, user can make client actively enter session off-line mode) when, then by the session to be sent of client Data are preserved into client.
Step 714, in client because network state recovers good or exits the offline mould of session according to the order received When formula enters session line model, the session data to be sent is sent to server.
Step 716, for client when reentering session line model, server recovery session status is simultaneously to be sent by this Session data is preserved into the nonvolatile memory of server.
Technical scheme is described in detail above in association with accompanying drawing, by technical scheme, end can be made Hold and the life cycle of session is effectively controlled, and cause session to meet the transactional requirement of service logic and flow, together When can also make session network environment it is bad in the case of, still can keep the continuity of session.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent substitution, improvement etc., should be included in the scope of the protection.

Claims (9)

  1. A kind of 1. conversation controlling method, it is characterised in that including:
    Terminal to server send service conversation request when, the server according to receive the service conversation request with And the service correlation information that the service conversation request bag contains, establish the target session on the terminal and be the target meeting Words distribution session identification and default memory block, wherein, the service correlation information includes conversation type, and the conversation type includes Interim conversation or persistent sessions, and the server establishes target interim conversation according to the conversation type or target persistently can Words;
    When the server establishes the target interim conversation, the default memory block is the volatile storage of the server Device;
    When the server establishes the target persistent sessions, the default memory block is that the non-volatile of the server is deposited Reservoir;And
    When the server establishes the target interim conversation, if the session persistence of the target interim conversation be more than or The session turn-off request from the terminal is received equal to preset durations, or the server, then the server closes Close the target interim conversation and remove the session data in the volatile memory;
    When the server establishes the target persistent sessions, if the server receives the session from the terminal and closed Request is closed, then target persistent sessions described in the server closing and is preserved the session data of the target persistent sessions to institute State nonvolatile memory.
  2. 2. conversation controlling method according to claim 1, it is characterised in that also include:
    When the terminal sends service conversation request to the server, the server judges to ask with the service conversation Whether corresponding business datum has been locked, and the target session is established for when being, the server is cancelled in judged result, When judged result is no, business datum described in the server locks, the target session is begun setting up, and be the target meeting Distribution business status indicator is talked about, is identified with service condition described in real-time update, wherein, the service condition mark and the target Business is associated corresponding to session.
  3. 3. conversation controlling method according to claim 1 or 2, it is characterised in that
    The service correlation information is also including the identifying of the terminal, the mark of the owning user of the terminal and/or business mark Know,
    The server is according to the identifying of the terminal, the mark of the owning user of the terminal and/or the service identification are The target session distributes the session identification.
  4. 4. conversation controlling method according to claim 3, it is characterised in that
    When the terminal sends conversation type to the server is asked for the service conversation of persistent sessions, the server is sentenced With the presence or absence of matching persistent sessions in the current sessions for the terminal of breaking, institute is not present in judged result is the current sessions When stating matching persistent sessions, the server establishes the target persistent sessions, when judged result is to be deposited in the current sessions In the matching persistent sessions, whether terminal described in the server prompts recovers the target persistent sessions, wherein, it is described The service identification for matching persistent sessions is identical with the service identification that the service conversation request bag contains;And
    When the target session between the server and the terminal is the target persistent sessions, if the terminal detects The target persistent sessions are in session off-line mode, then preserve the session data to be sent of the terminal to the terminal In, and when the detection target persistent sessions exit session off-line mode and enter session line model, by the meeting to be sent Words data are sent to the server.
  5. A kind of 5. session control device, it is characterised in that including:
    Processing unit, on server, when terminal to server sends service conversation request, according to the industry received Business session request and the service correlation information that contains of the service conversation request bag, establish on the terminal target session simultaneously Session identification and default memory block are distributed for the target session, wherein, the service correlation information includes conversation type, described Conversation type includes interim conversation or persistent sessions, to establish target interim conversation according to the conversation type or target persistently can Words;
    The default memory block includes:The nonvolatile memory of the volatile memory of the server and the server, And when the server establishes the target interim conversation, the default memory block is the volatile storage of the server Device, when the server establishes the target persistent sessions, the default memory block is that the non-volatile of the server is deposited Reservoir;And described device also includes:
    First closing unit, on the server, when the server establishes the target interim conversation, if the mesh The session persistence of mark interim conversation is more than or equal to preset durations, or the server is received from the terminal Session turn-off request, then close the target interim conversation and remove the session data in the volatile memory;
    Second closing unit, on the server, when the server establishes the target persistent sessions, if the clothes Business device receives the session turn-off request from the terminal, then closes the target persistent sessions and the target persistently can The session data of words is preserved to the nonvolatile memory.
  6. 6. session control device according to claim 5, it is characterised in that also include:
    Judging unit, on the server, the terminal to the server send service conversation request when, judge with Whether business datum corresponding to the service conversation request has been locked, and
    The processing unit is used for:In judged result for when being, the target session is established in cancellation, when judged result is no, The business datum is locked, begins setting up the target session, and business status indicator is distributed for the target session, with real-time The service condition mark is updated, wherein, the service condition, which identifies business corresponding with the target session, to be associated.
  7. 7. session control device according to claim 5, it is characterised in that
    The service correlation information is also including the identifying of the terminal, the mark of the owning user of the terminal and/or business mark Know, and
    The processing unit is specifically used for:
    According to the identifying of the terminal, the mark of the owning user of the terminal and/or the service identification are the target meeting Words distribute the session identification.
  8. 8. session control device according to claim 6, it is characterised in that
    The service correlation information is also including the identifying of the terminal, the mark of the owning user of the terminal and/or business mark Know, and
    The processing unit is specifically used for:
    According to the identifying of the terminal, the mark of the owning user of the terminal and/or the service identification are the target meeting Words distribute the session identification.
  9. 9. session control device according to claim 8, it is characterised in that
    The judging unit is additionally operable to:
    When the terminal sends conversation type to the server is asked for the service conversation of persistent sessions, the terminal is judged Current sessions in the presence or absence of matching persistent sessions,
    The processing unit is additionally operable to:
    When judged result is that the matching persistent sessions are not present in the current sessions, the target persistent sessions are established, When judged result is the matching persistent sessions in the current sessions be present, prompt whether the terminal recovers the target Persistent sessions, wherein, the service identification of the matching persistent sessions is identical with the service identification that the service conversation request bag contains; And
    Described device also includes:
    Storage unit, when the target session between the server and the terminal is the target persistent sessions, if described Terminal detects that the target persistent sessions are in session off-line mode, then by the session data to be sent of the terminal preserve to In the terminal,
    Transmitting element, when the detection target persistent sessions exit session off-line mode and enter session line model, by described in Session data to be sent is sent to the server.
CN201410479793.XA 2014-09-18 2014-09-18 Conversation controlling method and session control device Active CN104270427B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410479793.XA CN104270427B (en) 2014-09-18 2014-09-18 Conversation controlling method and session control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410479793.XA CN104270427B (en) 2014-09-18 2014-09-18 Conversation controlling method and session control device

Publications (2)

Publication Number Publication Date
CN104270427A CN104270427A (en) 2015-01-07
CN104270427B true CN104270427B (en) 2018-01-12

Family

ID=52161916

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410479793.XA Active CN104270427B (en) 2014-09-18 2014-09-18 Conversation controlling method and session control device

Country Status (1)

Country Link
CN (1) CN104270427B (en)

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104580537A (en) * 2015-02-06 2015-04-29 深圳中兴网信科技有限公司 Rapid reconnecting method based on XMPP (extensible messaging and presence protocol) client side, terminal and server
CN105610950B (en) * 2015-12-30 2020-07-24 腾讯科技(深圳)有限公司 Conversation processing method and system in motorcade trip
CN107277095B (en) * 2016-04-07 2020-09-25 阿里巴巴集团控股有限公司 Session segmentation method and device
CN106850820A (en) * 2017-02-20 2017-06-13 济南浪潮高新科技投资发展有限公司 Date storage method, client, service end, computer-readable recording medium and storage control
CN107071040B (en) * 2017-04-24 2020-05-01 深信服科技股份有限公司 Authority control method and system based on file descriptor and session
CN107038382B (en) * 2017-04-24 2020-05-22 深信服科技股份有限公司 Authority control method and system based on file descriptor and session
CN107018140B (en) * 2017-04-24 2021-06-04 深信服科技股份有限公司 Authority control method and system
CN107105036B (en) * 2017-04-24 2020-10-23 深信服科技股份有限公司 Activity tracing method and system for server
CN108664341B (en) * 2018-04-19 2021-07-27 金蝶软件(中国)有限公司 Data processing method, data processing device, computer equipment and storage medium
CN109189502A (en) * 2018-09-17 2019-01-11 网易(杭州)网络有限公司 A kind of message treatment method and relevant device based on instant messaging public platform
CN109743357B (en) * 2018-12-13 2022-03-01 杭州迪普科技股份有限公司 Method and device for realizing service access continuity
CN109800374A (en) * 2018-12-13 2019-05-24 平安普惠企业管理有限公司 Temporary page data processing method, device, computer equipment and storage medium
CN110489244B (en) * 2019-04-29 2022-08-12 北京达佳互联信息技术有限公司 Information processing method, system, apparatus and computer readable storage medium
CN111225019B (en) * 2019-10-29 2022-06-28 中国银联股份有限公司 Session control processing method, device, equipment and medium
CN111683045B (en) * 2020-04-28 2023-08-01 中国平安财产保险股份有限公司 Session information processing method, device, equipment and storage medium
CN112804653B (en) * 2020-12-31 2022-07-01 江西天利科技股份有限公司 5G message scene method, system and computer readable storage medium
CN113098935B (en) * 2021-03-24 2022-12-30 北京顺达同行科技有限公司 Session keeping method, device and storage medium
CN114428951B (en) * 2022-04-01 2022-07-01 北京时代亿信科技股份有限公司 Method and device for controlling access authority of network file system
CN114866596B (en) * 2022-05-25 2024-06-07 上海浦东发展银行股份有限公司 Session processing method, session processing device, server and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102214090A (en) * 2010-04-09 2011-10-12 腾讯科技(深圳)有限公司 Method and device for creating session window
CN102428736A (en) * 2009-05-22 2012-04-25 高通股份有限公司 Paging Of A User Equipment (Ue) Within A Wireless Communications System
CN102771082A (en) * 2010-01-20 2012-11-07 微软公司 Communication sessions among devices and interfaces with mixed capabilities
CN104054301A (en) * 2011-11-11 2014-09-17 卡尔加里科学公司 Session transfer and suspension in remote access application framework

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4338993B2 (en) * 2003-02-28 2009-10-07 モトローラ・インコーポレイテッド Wireless terminal session control method and interface setting method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102428736A (en) * 2009-05-22 2012-04-25 高通股份有限公司 Paging Of A User Equipment (Ue) Within A Wireless Communications System
CN102771082A (en) * 2010-01-20 2012-11-07 微软公司 Communication sessions among devices and interfaces with mixed capabilities
CN102214090A (en) * 2010-04-09 2011-10-12 腾讯科技(深圳)有限公司 Method and device for creating session window
CN104054301A (en) * 2011-11-11 2014-09-17 卡尔加里科学公司 Session transfer and suspension in remote access application framework

Also Published As

Publication number Publication date
CN104270427A (en) 2015-01-07

Similar Documents

Publication Publication Date Title
CN104270427B (en) Conversation controlling method and session control device
CN105491228B (en) Share the method and system of vehicle control power
CN102726081B (en) For the method and apparatus that Administrative Security is in a cellular communication system reshuffled
CN103747535B (en) Method, apparatus and system for recovering CAPWAP control channel
CN105228128A (en) Surfing flow shares processing method, device and terminal
CN101313324A (en) Virtual article leasehold processing system and method
CN105120495B (en) A kind of information push method and system of intelligent mobile terminal
CN103945330B (en) Virtual private cloud platform, virtual private cloud safety access method and system
CN108632944A (en) The selection method and device of user plane functions entity
CN104361487A (en) Method and device of inter-bank automatic repayment of credit card
CN109842877B (en) Method for realizing IMSI changing function in SIM card
CN101087248B (en) Method for originating carrier establishment based on network side of session service
CN104980298A (en) Abnormity prompting method, device and system
CN107730676A (en) Unlocking method, device and the storage medium of the vehicles
CN102573003A (en) Instant communication system, access equipment and communication equipment
CN101072139A (en) Method for realizing network quit for WiMAX communication system
CN107690149A (en) Trigger method, management function entity and the equipment of the core network of network strategy renewal
CN108462703A (en) Password update method, smart lock and server
CN105162769B (en) A kind of method and device of gateway permission transfer
CN108462984A (en) A kind of method and terminal carrying out access network management
CN107508848A (en) Session method for handover control, device and access point apparatus
CN106453471A (en) Sending method and apparatus, and obtaining method and apparatus of lease data based on distributed applications
CN102149172A (en) Method, device and system for selecting access gateway
CN107770756A (en) A kind of monitoring method, terminal, server, gateway device and system
CN108629179A (en) Authentication processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant