CN105847217B - The method and its system of concurrent multi-service session - Google Patents

The method and its system of concurrent multi-service session Download PDF

Info

Publication number
CN105847217B
CN105847217B CN201510014870.9A CN201510014870A CN105847217B CN 105847217 B CN105847217 B CN 105847217B CN 201510014870 A CN201510014870 A CN 201510014870A CN 105847217 B CN105847217 B CN 105847217B
Authority
CN
China
Prior art keywords
service conversation
service
session
conversation
business
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
CN201510014870.9A
Other languages
Chinese (zh)
Other versions
CN105847217A (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.)
Advanced Nova Technology Singapore Holdings Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201510014870.9A priority Critical patent/CN105847217B/en
Priority to PCT/CN2016/070132 priority patent/WO2016112793A1/en
Publication of CN105847217A publication Critical patent/CN105847217A/en
Application granted granted Critical
Publication of CN105847217B publication Critical patent/CN105847217B/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
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications

Abstract

The present invention relates to the communication technologys, disclose the method and its system of a kind of concurrent multi-service session.In the present invention, it is identified in same system session by setting service conversation to distinguish multiple and different service conversations, when to carry out multiple service conversations at the same time, it can be identified according to each service conversation and each service conversation is isolated, while concurrently completing multiple business, the mutual covering of business datum is avoided.In addition, created when each service conversation starts, at the end of will corresponding service conversation mark and business datum delete, it is convenient, flexible.

Description

The method and its system of concurrent multi-service session
Technical field
The present invention relates to the communication technology, in particular to the method and its system of concurrent multi-service session.
Background technique
Existing WEB Internet technology relies only on system sessioin (session) mechanism and comes between client-server Multiple request-response (request-response, referred to as " req-res ") associate, this leads to same system session In multiple business activities interfere with each other,
In Internet application, usually using system session in multiple req-res data sharings.As shown in Figure 1, Shared procedure is general are as follows: data are written into system session in some specific req-res, then it is subsequent some Data are read from system session in req-res.Due to browser opening, user can open in the same browser Multiple TAB (label) pages, such as TAB pages 1 and TAB pages 2, while multiple business are concomitantly completed, it will send out in this case The problem of raw business datum shown in FIG. 1 mutually covers.
Summary of the invention
The purpose of the present invention is to provide the methods and its system of a kind of concurrent multi-service session, concurrently complete multiple industry While business, the mutual covering of business datum is avoided.
In order to solve the above technical problems, embodiments of the present invention disclose a kind of method of concurrent multi-service session, visitor Family end carries out multiple service conversations simultaneously in same system session, and each service conversation is provided with unique service conversation mark Know, method the following steps are included:
When server receives the request of client in each service conversation, the industry for the service conversation that client is sent is received Business session identification;
When the request at customer in response end, the business meeting of service conversation is sent to client in each service conversation for server Words mark.
Embodiments of the present invention also disclose a kind of system of concurrent multi-service session, and the system controls customer end is same Multiple service conversations are carried out in one system session simultaneously, each service conversation is provided with unique service conversation mark, system Include:
Receiving module when receiving the request of client in each service conversation for control server, receives client The service conversation of the service conversation of transmission identifies;And
Sending module when the request at customer in response end, is sent out for control server in each service conversation to client The service conversation of service conversation is sent to identify.
Compared with prior art, the main distinction and its effect are embodiment of the present invention:
In the present invention, it is identified in same system session by setting service conversation to distinguish multiple and different business Session, thus can be identified according to each service conversation and each service conversation is isolated when carrying out multiple service conversations at the same time, While concurrently completing multiple business, the mutual covering of business datum is avoided.
Further, each business datum is only capable of identifying by corresponding service conversation and be written and read, thus each business Data will not be covered mutually.
Further, created when each service conversation starts, at the end of will corresponding service conversation mark and industry Data of being engaged in are deleted, convenient, flexible.
Detailed description of the invention
Fig. 1 is a kind of schematic diagram of existing multi-service session.
Fig. 2 is a kind of flow diagram of the method for concurrent multi-service session in first embodiment of the invention.
Fig. 3 is a kind of structural schematic diagram of the system of concurrent multi-service session in third embodiment of the invention.
Specific embodiment
In the following description, in order to make the reader understand this application better, many technical details are proposed.But this The those of ordinary skill in field is appreciated that even if without these technical details and many variations based on the following respective embodiments And modification, each claim of the application technical solution claimed can also be realized.
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to implementation of the invention Mode is described in further detail.
First embodiment of the invention is related to a kind of method of concurrent multi-service session.Fig. 2 is the concurrent multi-service session Method flow diagram.In the method for the concurrent multi-service session, client in same system session simultaneously into The multiple service conversations of row, each service conversation are provided with unique service conversation mark.
It is appreciated that system session represent since browser open a website until closing browser this period Section, the same session, that is, the data being stored in system session are shared in all request-response operations in this period It can be shared between multiple req-res.
Service conversation is the supplement to existing system conversation mechanism, and the corresponding business activity of a service conversation is from the beginning of To complete life cycle is terminated, i.e., service conversation is created in the initial task of business activity, and after the completion of ending task Destroy service conversation.By taking payment as an example, primary typical payment transaction activity includes login, cashier payment, payment result exhibition Show three tasks, therefore creates a new business session in login task, and destroy after the completion of payment result displaying task This service conversation.And service conversation identifies business activity of unique identification.
As shown in Fig. 2, method includes the following steps:
In step 201, when server receives the request of client in each service conversation, receive what client was sent The service conversation of service conversation identifies.Various interaction messages are had between client and server, relevant to service conversation Relevant service conversation mark is carried in message, to distinguish service conversation belonging to each message.Based on different types of service, visitor The request message that family end is sent to server generally has many types, and service conversation mark can be carried in request message.Respectively Kind request message itself is the prior art, herein without being described in detail.
Then into step 202, server when the request at customer in response end, is sent in each service conversation to client The service conversation of service conversation identifies.It is identified comprising service conversation (from triggering in the response message that server is sent to client Obtained in the request message of the response message), when client receives response message, by the analysis to response message, obtain Service conversation mark.The response message that server is sent to client may have many types, if it is related to service conversation , generally to carry service conversation mark.Various response messages itself are the prior arts, herein without being described in detail.
Hereafter terminate this process.
It is multiple to distinguish by setting service conversation mark in same system session in the method for present embodiment Different service conversation, to can be identified according to each service conversation by each business meeting when carrying out multiple service conversations at the same time Words are isolated, and while concurrently completing multiple business, avoid the mutual covering of business datum.Because relevant to business Service conversation mark is all carried in request and response message, so client is known that business corresponding to each message Session, relevant business datum can store in the dedicated memory region (or storage file) of corresponding service session, so can Each service conversation to be successfully isolated, the business datum of different business will not be covered mutually.
Second embodiment of the invention is related to a kind of method of concurrent multi-service session.Second embodiment is implemented with first Mode is compared, and difference is:
Each business datum is only capable of identifying by corresponding service conversation and be written and read, so that each business datum will not phase Mutually covering.Specifically:
When server receives the request of client in each service conversation, by from the received service conversation mark of client Know and obtain service conversation object from system session object, and in business datum deposit service conversation object.
Server is in each service conversation when the request at customer in response end, by from the received service conversation mark of client Know and obtain service conversation object from system session object, and reads business datum from business session object.It is appreciated that meeting Talking about object is the object created in a session.
Server is created when each service conversation starts, at the end of will corresponding service conversation mark and business number It is convenient, flexible according to deletion.Specifically:
The above method is further comprising the steps of:
Server creates new service conversation in the initial task of each business activity, and is arranged for new service conversation Unique service conversation mark.
Optionally, the above method is further comprising the steps of:
At the end of each service conversation, server deletes corresponding service conversation mark and business datum.
It is appreciated that at the end of service conversation, can not also be deleted corresponding in other embodiments of the invention Service conversation mark and business datum, to facilitate inquiry.
In of the invention one preferred example, in srvice instance implementation procedure, if the business datum generated only exists As it can be seen that business datum is associated with business so when storing visible data in this kind of srvice instance in current business example SessionId (i.e. service conversation mark), rather than system sessionId (i.e. system session mark).Concrete scheme is as follows:
● business sessionId is generated: in the node that comes into play of business, one is created in current session Session variable, and distribute for the session variable business sessionId of the unique identification srvice instance.
● business sessionId is shared: being different from system sessionId can be saved and in req-res by cookie Between share, business sessionId cannot be placed in cookie, need to return in each response browser then clear When the next request of device of looking at, then business sessionId is submitted to server.
● it writes business datum: business session object being obtained from system session by business sessionId, industry Data of being engaged in are stored in business session object.
● it reads business datum: reading business session object from system session using business sessionId, then Business datum is read from business session object.
In order to achieve the purpose that the business datum different business example is isolated, the concept of introducing business session, one Business session starts from first business activity of srvice instance, terminates in the ending activity of srvice instance;Each system Session has a unique system sessionId, correspondingly, we distribute a unique business for business session sessionId。
It is appreciated that forming presently preferred embodiments of the present invention after above each improvement combination, but each improve can also make respectively With.
Each method embodiment of the invention can be realized in a manner of software, hardware, firmware etc..Regardless of the present invention be with Software, hardware or firmware mode realize that instruction code may be stored in any kind of computer-accessible memory In (such as permanent perhaps revisable volatibility is perhaps non-volatile solid or non-solid, it is fixed or The replaceable medium etc. of person).Equally, memory may, for example, be programmable logic array (Programmable Array Logic, referred to as " PAL "), random access memory (Random Access Memory, referred to as " RAM "), it may be programmed read-only deposit Reservoir (Programmable Read Only Memory, referred to as " PROM "), read-only memory (Read-Only Memory, letter Claim " ROM "), electrically erasable programmable read-only memory (Electrically Erasable Programmable ROM, referred to as " EEPROM "), disk, CD, digital versatile disc (Digital Versatile Disc, referred to as " DVD ") etc..
Third embodiment of the invention is related to a kind of system of concurrent multi-service session.Fig. 3 is the concurrent multi-service session System structural schematic diagram.The system controls customer end of the concurrent multi-service session carries out simultaneously in same system session Multiple service conversations, each service conversation are provided with unique service conversation mark.As shown in figure 3, the system includes:
Receiving module when receiving the request of client in each service conversation for control server, receives client The service conversation of the service conversation of transmission identifies.And
Sending module when the request at customer in response end, is sent out for control server in each service conversation to client The service conversation of service conversation is sent to identify.
It is multiple to distinguish by setting service conversation mark in same system session in the system of present embodiment Different service conversation, to can be identified according to each service conversation by each business meeting when carrying out multiple service conversations at the same time Words are isolated, and while concurrently completing multiple business, avoid the mutual covering of business datum.
First embodiment is method implementation corresponding with present embodiment, and present embodiment can be implemented with first Mode is worked in coordination implementation.The relevant technical details mentioned in first embodiment are still effective in the present embodiment, in order to It reduces and repeats, which is not described herein again.Correspondingly, the relevant technical details mentioned in present embodiment are also applicable in the first implementation In mode.
Four embodiment of the invention is related to a kind of system of concurrent multi-service session.4th embodiment and third are implemented Mode is compared, and difference is:
Each business datum is only capable of identifying by corresponding service conversation and be written and read, so that each business datum will not phase Mutually covering.Specifically:
Above system further includes writing module, receives the request of client in each service conversation for control server When, by obtaining service conversation object from system session object from the received service conversation mark of client, and business number According in deposit service conversation object.
Above system further includes read module, the request for control server customer in response end in each service conversation When, by obtaining service conversation object from system session object from client received service conversation mark, and from business meeting Business datum is read in words object.
Created when each service conversation starts, at the end of will corresponding service conversation mark and business datum delete It removes, it is convenient, flexible.Specifically
Above system further includes creation module, is created in the initial task of each business activity for control server new Service conversation, and unique service conversation mark is set for new service conversation.
Optionally, above system further includes removing module, for control server at the end of each service conversation, is deleted Corresponding service conversation mark and business datum.
It is appreciated that at the end of service conversation, can not also be deleted corresponding in other embodiments of the invention Service conversation mark and business datum, to facilitate inquiry.
Second embodiment is method implementation corresponding with present embodiment, and present embodiment can be implemented with second Mode is worked in coordination implementation.The relevant technical details mentioned in second embodiment are still effective in the present embodiment, in order to It reduces and repeats, which is not described herein again.Correspondingly, the relevant technical details mentioned in present embodiment are also applicable in the second implementation In mode.
To sum up, the present invention introduces business session mechanism on system session manufacturing basis, i.e., in system session Middle insertion business session keeps apart multiple business activities in same system session by dual session mechanism Come.It is appreciated that this dual session mechanism can be applied in other conversation applications in addition to internet web page.
It can accomplish through the invention mutually isolated between more business activities in a system session, avoid simultaneously Each business datum mutually covers in the case of hair.
It should be noted that each module mentioned in each equipment embodiment of the present invention is all logic module, physically, One logic module can be a physical module, be also possible to a part of a physical module, can also be with multiple physics The combination of module realizes that the Physical realization of these logic modules itself is not most important, these logic modules institute reality The combination of existing function is only the key for solving technical problem proposed by the invention.In addition, in order to protrude innovation of the invention Part, there is no the technical problem relationship proposed by the invention with solution is less close for the above-mentioned each equipment embodiment of the present invention Module introduce, this does not indicate above equipment embodiment and there is no other modules.
It should be noted that in the claim and specification of this patent, such as first and second or the like relationship Term is only used to distinguish one entity or operation from another entity or operation, without necessarily requiring or implying There are any actual relationship or orders between these entities or operation.Moreover, the terms "include", "comprise" or its Any other variant is intended to non-exclusive inclusion so that include the process, methods of a series of elements, article or Equipment not only includes those elements, but also including other elements that are not explicitly listed, or further include for this process, Method, article or the intrinsic element of equipment.In the absence of more restrictions, being wanted by what sentence " including one " limited Element, it is not excluded that there is also other identical elements in the process, method, article or apparatus that includes the element.
Although being shown and described to the present invention by referring to some of the preferred embodiment of the invention, It will be understood by those skilled in the art that can to it, various changes can be made in the form and details, without departing from this hair Bright spirit and scope.

Claims (6)

1. a kind of method of concurrent multi-service session, which is characterized in that client carries out more simultaneously in same system session A service conversation, each service conversation are provided with unique service conversation mark, the described method comprises the following steps:
When server receives the request of the client in each service conversation, the business that the client is sent is received The service conversation of session identifies, and service conversation object, and handle are obtained from system session object by service conversation mark Business datum is stored in the service conversation object;
When the server responds the request of the client in each service conversation, Xiang Suoshu client sends the business The service conversation of session identifies, and is identified by the service conversation and obtains service conversation object from system session object, and from Business datum is read in the service conversation object;Wherein
The service conversation object is the object created in service conversation;Also,
The relevant business datum of each service conversation is stored in the dedicated memory region or storage file of corresponding service session In, each service conversation is isolated, covers the relevant business datum of different business session mutually.
2. the method for concurrent multi-service session according to claim 1, which is characterized in that the method also includes following steps It is rapid:
The server creates new service conversation in the initial task of each business activity, and is the new service conversation Unique service conversation mark is set.
3. the method for concurrent multi-service session according to claim 1, which is characterized in that the method also includes following steps It is rapid:
At the end of each service conversation, the server deletes corresponding service conversation mark and business datum.
4. a kind of system of concurrent multi-service session, which is characterized in that the system controls customer end is in same system session Multiple service conversations are carried out simultaneously, each service conversation is provided with unique service conversation mark, the system comprises:
Receiving module receives the visitor when receiving the request of the client in each service conversation for control server The service conversation mark for the service conversation that family end is sent;And
Writing module, when receiving the request of the client for controlling the server in each service conversation, by from The received service conversation mark of client obtains service conversation object from system session object, and business datum It is stored in the service conversation object;
Sending module, when responding the request of the client for controlling the server in each service conversation, Xiang Suoshu Client sends the service conversation mark of the service conversation;
Read module, when responding the request of the client for controlling the server in each service conversation, by from The received service conversation mark of the client obtains service conversation object from system session object, and from the business Business datum is read in session object;Wherein,
The service conversation object is the object created in service conversation;Also,
The relevant business datum of each service conversation is stored in the dedicated memory region or storage file of corresponding service session In, each service conversation is isolated, covers the relevant business datum of different business session mutually.
5. the system of concurrent multi-service session according to claim 4, which is characterized in that the system also includes creation moulds Block creates new service conversation for controlling the server in the initial task of each business activity, and is described new Unique service conversation mark is arranged in service conversation.
6. the system of concurrent multi-service session according to claim 4, which is characterized in that the system also includes delete mould Block deletes corresponding service conversation mark and business datum for controlling the server at the end of each service conversation.
CN201510014870.9A 2015-01-12 2015-01-12 The method and its system of concurrent multi-service session Active CN105847217B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510014870.9A CN105847217B (en) 2015-01-12 2015-01-12 The method and its system of concurrent multi-service session
PCT/CN2016/070132 WO2016112793A1 (en) 2015-01-12 2016-01-05 Method for concurrence of multiple service sessions, and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510014870.9A CN105847217B (en) 2015-01-12 2015-01-12 The method and its system of concurrent multi-service session

Publications (2)

Publication Number Publication Date
CN105847217A CN105847217A (en) 2016-08-10
CN105847217B true CN105847217B (en) 2019-09-06

Family

ID=56405237

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510014870.9A Active CN105847217B (en) 2015-01-12 2015-01-12 The method and its system of concurrent multi-service session

Country Status (2)

Country Link
CN (1) CN105847217B (en)
WO (1) WO2016112793A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106357791A (en) * 2016-09-30 2017-01-25 华为技术有限公司 Method, device and system for processing services
CN110650203B (en) * 2019-09-26 2022-10-14 广州视源电子科技股份有限公司 Data transmission method, device and system, computer storage medium and electronic equipment
CN110740351B (en) * 2019-11-14 2022-05-24 普联技术有限公司 Method, device and storage medium for transmitting stream media data
CN111580476B (en) * 2020-04-30 2021-05-11 联宝(合肥)电子科技有限公司 Intelligent production management method, equipment and computer readable medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102638582A (en) * 2012-04-12 2012-08-15 华为技术有限公司 Data communicating method and communication end

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101635672B (en) * 2008-07-21 2013-05-08 中兴通讯股份有限公司 Device and method for realizing convergence service session in group mode
CN101753592B (en) * 2008-11-28 2013-04-17 国际商业机器公司 Method and system for data processing
CN102622348B (en) * 2011-01-26 2014-07-02 腾讯科技(深圳)有限公司 Method and device enabling plurality of windows to perform analytical display on network page simultaneously
US8200833B1 (en) * 2011-10-05 2012-06-12 Google Inc. Security mode based management of cookie data stores
US9218428B2 (en) * 2012-10-15 2015-12-22 Dell Products, L.P. Techniques for generating different sessions for multiple tabs of a single browser window
CN103198142B (en) * 2013-04-17 2018-01-02 华为技术有限公司 Page data renewal processing method, client and server

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102638582A (en) * 2012-04-12 2012-08-15 华为技术有限公司 Data communicating method and communication end

Also Published As

Publication number Publication date
WO2016112793A1 (en) 2016-07-21
CN105847217A (en) 2016-08-10

Similar Documents

Publication Publication Date Title
CN105847217B (en) The method and its system of concurrent multi-service session
US9201975B2 (en) Exchange of dynamically updated data using matrix bar codes
CN105824842B (en) Distributed transaction processing method and its system
TW201835744A (en) Methods and apparatuses for selectively displaying messages based on a predicted importance
EP3485453A1 (en) Using a distributed ledger for tracking debt data
CN105988896A (en) Backup method and device of mobile terminal data
CN107979525A (en) A kind of red packet distribution method, equipment and medium
CN102376134A (en) Point of sale (POS) machine, POS machine card-punching system and card-punching transaction method thereof
CN105681380B (en) Client off-line method and its system
CN101727558B (en) Method for clearing password of computer, computer and server
CN109684099A (en) Message treatment method and device
CN107766446A (en) Method for pushing, device, storage medium and the processor of information
CN111047397A (en) Library book management method, device and medium based on block chain
CN110110516A (en) Log recording method, apparatus and system
Ackx Emerging technologies, disrupt or be disrupted
CN109933742A (en) Content of pages rearranges a volume method and device in a kind of process
CN108763976B (en) Information display method based on double screens, mobile terminal and storage medium
CN106657092B (en) Service processing method and device based on SS L/T L S
TWI455037B (en) Controlling method for rfid tag and rfid system thereof
CN105844531B (en) data analysis and management method and system of social network
CN109241381A (en) Information matching method and device
CN106912118A (en) A kind of method for creating service number, equipment and system
CN112019642A (en) Audio uploading method, device, equipment and storage medium
CN108629610B (en) Method and device for determining popularization information exposure
CN105991611B (en) Account management method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1228119

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200923

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200923

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Patentee before: Alibaba Group Holding Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240226

Address after: Guohao Times City # 20-01, 128 Meizhi Road, Singapore

Patentee after: Advanced Nova Technology (Singapore) Holdings Ltd.

Country or region after: Singapore

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee before: Innovative advanced technology Co.,Ltd.

Country or region before: Cayman Islands