CN102546795A - Client-server conversation persisting method based on user dialogue mode - Google Patents

Client-server conversation persisting method based on user dialogue mode Download PDF

Info

Publication number
CN102546795A
CN102546795A CN2011104573827A CN201110457382A CN102546795A CN 102546795 A CN102546795 A CN 102546795A CN 2011104573827 A CN2011104573827 A CN 2011104573827A CN 201110457382 A CN201110457382 A CN 201110457382A CN 102546795 A CN102546795 A CN 102546795A
Authority
CN
China
Prior art keywords
user
user session
session
dialogue
client
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2011104573827A
Other languages
Chinese (zh)
Inventor
武志学
李梅
李志�
韩辉鹏
赵阳
唐永勤
赵启卫
吴林芳
成钢
李华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu GoldTel Industry Group Co., Ltd.
Original Assignee
CHENGDU BABATA NETWORK TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CHENGDU BABATA NETWORK TECHNOLOGY Co Ltd filed Critical CHENGDU BABATA NETWORK TECHNOLOGY Co Ltd
Priority to CN2011104573827A priority Critical patent/CN102546795A/en
Publication of CN102546795A publication Critical patent/CN102546795A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a client-server conversation persisting method based on a user dialogue mode. The client-server conversation persisting method comprises the following steps: (1) logging in: searching a user dialogue database through a 'user dialogue' mechanism of a server; checking whether a user pauses the 'user dialogue' or not; if not, establishing a new 'user dialogue'; otherwise, and reading all the 'user dialogues' of the user from the user dialogue database; (2) carrying out a 'user dialogue' activity: leading the user to select to continue any one of the paused 'user dialogues'; and also enabling the user to select to start the new 'user dialogue'; (3) pausing the 'user dialogue': storing data which is not stored in the 'dialogue' mechanism; and (4) completing the 'user dialogue': releasing system resources and deleting 'dialogue' data from the user dialogue database. As the client-server conversation persisting method is adopted, cloud computing service can be recovered to a scene before the services are interrupted after fault repairing on the server, a client or a communication network are carried out, or a working field is replaced by a client user.

Description

Method based on the client-server persistent session of user session pattern
Technical field
The present invention relates to a kind of method of the client-server persistent session based on the user session pattern.
Background technology
In the cloud computing epoch; Computer software is to install and operate in the cloud center; The user can be anywhere, whenever, only need a client or web browser just can run on the supercentral software application of cloud, the very big convenience of use software application is provided to the user like this; The user can pass through any one computer, uses a software program through network.But a greatest weakness of cloud computing is the dependence to the Internet.If during the user uses cloud service; Incidents such as occurring network interruption; The user not only has no idea continue to use cloud service, and ongoing stage of working result also might lose, and this is because network interrupts causing subscription client and cloud central server " dialogue " interruption.The situation that this " dialogue " interrupted also possibly occur in the user because there is urgent thing to handle, and has little time the work in the normal termination hand, and perhaps the user has surpassed expection at time of leaving the work client; Say further that again a user also might need the conversion work place in the process of using cloud service.Such as, after coming home from work, continue him on the computer of staying at home in the work that office does not have completion, perhaps need change in another office and ongoing work is discussed together with the colleague.Under existing technology, the user before leaving office, at first to finish he at that time with " dialogue " at cloud computing center, behind another place, rebulid a new dialogue more then, this has just brought very big trouble to the user.Except needs are closed and rebuild the dialogue, after getting into new dialogue, the user need rebulid operational environment at that time, sometimes, this process expensive time of meeting, brings great inconvenience to the user, even possibly cause economic loss.
Summary of the invention
The object of the invention promptly is to overcome the deficiency of prior art; A kind of method of the client-server persistent session based on the user session pattern is provided, has fundamentally solved " dialogue " and interrupted this problem, allow the user at any time; Continue " dialogue " of original and Cloud Server on the different client side; The user does not need special " dialogue " that finishes at that time, when using new client when leaving a client; Can continue original " dialogue " immediately; And do not need to rebuild, guarantee that the work that the user accomplished at that time can not lose, guarantee the user can be again in any client, whenever recover no matter because any former thereby the client of interrupting and the advantages such as " dialogues " of online service device.
The objective of the invention is to realize: based on the method for the client-server persistent session of user session pattern through following technical scheme; Guarantee that the cloud computing service is after server, client computer or communication network failure are repaired; After perhaps the client user changes the work-yard; Can return to the preceding scene of service disruption, it may further comprise the steps:
(1) login: when the user signs in to a network service; Server " user session " mechanism is the inquiring user dialog database at first; Check " user session " that whether this user suspends; If " user session " that this user does not suspend; Then " user session " mechanism is created new " user session " for this user, if this user has time-out " user session ", then " user session " mechanism reads this user all " user session " and related data thereof and is presented on the interface from the user session database;
(2) " user session " activity: the user can select to continue " user session " of any one time-out; Also can select to begin new " user session "; If " user session " that the user selects to continue to suspend; Then " user session " mechanism is recovered corresponding dialogue data from the user session database, and the user continues original work;
(3) " user session " suspends: when the user asks to suspend one " user session ", perhaps " dialogue " when closing to an end, " user session " mechanism " dialogue " machine-processed storage of not storing in the user session database;
(4) " user session " accomplished: when the user asked to finish one " user session ", " user session " mechanism discharged the system resource of its use, and from the user session database, deleted relevant " dialogue " data.
Described " user session " comprise the user in a period of time through client and server carry out once or the exchanges data once;
Described " user session " suspends " dialogue " that comprise client user's active request and suspends, and " dialogue " that server breaks off suspends, and " dialogue " that server, client computer or communication line fault cause suspends.
The invention has the beneficial effects as follows:
(1) the present invention provides a kind of method of the client-server persistent session based on the user session pattern; In general, fundamentally solved " dialogue " and interrupted this problem, allowed the user at any time; Continue " dialogue " of original and Cloud Server on the different client side; The user does not need special " dialogue " that finishes at that time, when using new client when leaving a client; Can continue original " dialogue " immediately; And do not need to rebuild, guarantee that the work that the user accomplished at that time can not lose, guarantee the user can be again in any client, whenever recover no matter because any former thereby the client of interrupting and " dialogue " of online service device;
(2) the present invention provides a kind of method of the client-server persistent session based on the user session pattern; Specifically; All bring benefit for network/cloud application developer and user; The user that network/cloud is used can suspend their work, at any time all can continue original work through any one client, prevents because special circumstances such as network failure cause the user job that the client and server interchange is interrupted bringing to lose;
(3) the present invention provides a kind of method of the client-server persistent session based on the user session pattern, the user's that network/cloud is used benefit:
A. bring great mobility to the user, they can bring into use network/cloud service to carry out a job in any one place, if necessary, can move to the original work of other local continuation;
B. improve user's operating efficiency, user's login system will present to the user to his state of last task, the work that will begin in a minute, and do not need to go again to create the operational environment of last time;
C. the work that guarantees the user is not lost; The not free work of preserving oneself even the user makes off because of emergency; When perhaps having caused the user not exchange with network/cloud service because of external cause; The present invention can store the operational data that the user has carried out but also do not preserve, and makes the user when logining next time, can continue original work;
D. not free restriction, the user does not worry because overtime and obliterated data;
E. a user can have a plurality of " user sessions " to exist simultaneously, and the user can switch to another work from a job easily;
(4) the present invention provides a kind of method of the client-server persistent session based on the user session pattern, to the benefit of network/cloud application developer:
A. make network/cloud application can store " user session " data very easily and not need the developer to do any extra work;
B. the transparency that realizes, the developer can programme according to the mode of original processing " dialogue ";
C. scheme provided by the invention can be applied to any network/cloud system;
D. improve developer's operating efficiency, do not need the developer to handle the task of " user session ", they can be placed on energy in the exploitation of professional task fully.
Description of drawings
Fig. 1 is a flow chart of the present invention;
Fig. 2 is " user session " of the present invention state diagram;
Fig. 3 is " user session " of the present invention datagram;
Fig. 4 is the present invention's's " user session " realization flow figure;
Fig. 5 is that the present invention's " user session " module asks to carry out the preposition and rearmounted realization flow figure that realizes " user session " action required that handles to HTTP.
Embodiment
Below in conjunction with accompanying drawing the present invention is done further description, but protection scope of the present invention is not limited to the following stated.
As shown in Figure 1; Based on the method for the client-server persistent session of user session pattern, guarantee that the cloud computing service is after server, client computer or communication network failure are repaired, after perhaps the client user changes the work-yard; Can return to the preceding scene of service disruption, it may further comprise the steps:
(1) login: when the user signs in to a network service; Server " user session " mechanism is the inquiring user dialog database at first; Check " user session " that whether this user suspends; If " user session " that this user does not suspend; Then " user session " mechanism is created new " user session " for this user, if this user has time-out " user session ", then " user session " mechanism reads this user all " user session " and related data thereof and is presented on the interface from the user session database;
(2) " user session " activity: the user can select to continue " user session " of any one time-out; Also can select to begin new " user session "; If " user session " that the user selects to continue to suspend; Then " user session " mechanism is recovered corresponding dialogue data from the user session database, and the user continues original work;
(3) " user session " suspends: when the user asks to suspend one " user session ", perhaps " dialogue " when closing to an end, " user session " mechanism " dialogue " machine-processed storage of not storing in the user session database;
(4) " user session " accomplished: when the user asked to finish one " user session ", " user session " mechanism discharged the system resource of its use, and from the user session database, deleted relevant " dialogue " data.
Described " user session " comprise the user in a period of time through client and server carry out once or the exchanges data once;
Described " user session " suspends " dialogue " that comprise client user's active request and suspends, and " dialogue " that server breaks off suspends, and " dialogue " that server, client computer or communication line fault cause suspends;
Described " user session " can be embodied directly in the webserver, also can be implemented in earlier in the software module, inserts it in existing webserver again.
Present computer " dialogue " is meant a series of interchange that a user carries out through a client and a server in a period of time; And the time of this " dialogue " beginning all is that the user clearly asks; And time that finishes or propose by the user; Also might be that server is because a variety of causes finishes (such as the user does not exchange for a long time) by force.
As shown in Figure 2, the present invention introduces new ideas that are called " user session ", and " user session " is meant a series of interchange that a user carries out through client and server in a period of time.Can find out that from definition " user session " is that with the essential difference of " dialogue " " user session " allows the user to exchange with given server through different clients.Roughly, " user session " is made up of a plurality of " dialogues ", and the end of " user session " is to be confirmed by the user fully.One " user session " can reside in any one state in following three states: activity, time-out, completion; During one " user session " beginning is to reside in " activity " state; " user session " of an activity is always corresponding with one " dialogue ", and in this " dialogue " no matter because any former thereby finish the back and get into halted state, after the user finishes one " user session "; It will get into completion status; According to the management policy of formulating, the keeper also has the right to become completion status to one " user session " from halted state, when the user reuses " user session " of a time-out; It has just got into active state again, and one " user session " can be changed inferior arbitrarily between " time-out " and " activity " state.
As shown in Figure 3; Mission critical of realization " user session " mechanism is wanted to safeguard all data relevant with " user session " exactly; Become " completion " state up to it; When " user session " when being in active state, the data relevant with it realize that the mechanism of " dialogue " can preserve.But when " user session " state becomes time-out from activity, " dialogue " mechanism will no longer be preserved relevant data.This is that " dialogue " finishes because to " dialogue " mechanism, so " user session " mechanism during this time must be born and safeguard relevant data.When later user was connected to " user session " again, the data that " user session " mechanism needs to recover relevant were given " dialogue " mechanism, do not lose with the work of guaranteeing the user.
The present invention can expand the present webserver with several kinds of ways; Realize the function of " user session "; Such as; Webserver developer can be embodied directly in the function of " user session " in the webserver, also can be implemented in " user session " in the software module and insert it again in the existing webserver then.Although the employed webserver is different in the different computer platforms, realize that on them the software pattern of " user session " is identical.The present invention adopts distinct methods to realize that the crucial difference of " user session " is: where expands aforesaid operations; Such as; We promptly can be attached to aforesaid operations in the event processing module of HPPT Modules of ASP.NET; Also can add event processing module to these operations to the HPPT Handlers of ASP.NET; Although our method that is to use HTTP Module described herein, this implementation method also is applicable to other implementation method, and protection scope of the present invention is not limited to the above.
Like Fig. 4, shown in Figure 5; ASP.NET allows the developer to expand its function through adding HTTP Module; In order to realize " user session "; We have realized a HTTP Module and have joined the flow process of HTTP Runtime to it that " user session " module can be carried out preposition and rearmounted processing to the HTTP request and realized " user session " necessary operations.
Each " user session " provides at least two event handlers; Two event handlers are handled two HttpApplication incidents respectively, and described two HttpApplication incidents comprise Application_OnPreRequestHandleExecute and Application_OnPostRequestHandlerExecute;
Described Application_OnPreRequestHandleExecute pre-process http request; Confirm whether need continue or restart one " user session "; Concrete comprises: if this request not corresponding " user session "; Then transfer to " user session " page; Upload " user session " that the user selects or create new " user session ", and set up " user session " object, if this request has accordingly " user session " then is left intact;
Described Application_OnPostRequestHandlerExecute asks to carry out postposition to http and handles; Confirm whether the user asks to finish or suspend one " user session "; And take corresponding step, concrete comprises: if " user session " is in active state, then write the user session database to relevant " dialogue " data; If " user session " is in halted state; Then change " dialogue " state in the user session database,, then clear up " dialogue " data if " user session " is in completion status;
Total method, attribute and the incident of all application objects in the described HttpApplication definition ASP.NET application program.

Claims (3)

1. based on the method for the client-server persistent session of user session pattern; Guarantee that the cloud computing service is after server, client computer or communication network failure are repaired; After perhaps the client user changes the work-yard; Can return to the preceding scene of service disruption, it is characterized in that: it may further comprise the steps:
(1) login: when the user signs in to a network service; Server " user session " mechanism is the inquiring user dialog database at first; Check " user session " that whether this user suspends; If " user session " that this user does not suspend; Then " user session " mechanism is created new " user session " for this user, if this user has time-out " user session ", then " user session " mechanism reads this user all " user session " and related data thereof and is presented on the interface from the user session database;
(2) " user session " activity: the user can select to continue " user session " of any one time-out; Also can select to begin new " user session "; If " user session " that the user selects to continue to suspend; Then " user session " mechanism is recovered corresponding dialogue data from the user session database, and the user continues original work;
(3) " user session " suspends: when the user asks to suspend one " user session ", perhaps " dialogue " when closing to an end, " user session " mechanism " dialogue " machine-processed storage of not storing in the user session database;
(4) " user session " accomplished: when the user asked to finish one " user session ", " user session " mechanism discharged the system resource of its use, and from the user session database, deleted relevant " dialogue " data.
2. the method for the client-server persistent session based on the user session pattern according to claim 1 is characterized in that: described " user session " comprise the user in a period of time through client and server carry out once or the exchanges data once.
3. the method for the client-server persistent session based on the user session pattern according to claim 1; It is characterized in that: described " user session " suspends " dialogue " that comprise client user's active request and suspends; " dialogue " that server breaks off suspends, and " dialogue " that server, client computer or communication line fault cause suspends.
CN2011104573827A 2011-12-31 2011-12-31 Client-server conversation persisting method based on user dialogue mode Pending CN102546795A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011104573827A CN102546795A (en) 2011-12-31 2011-12-31 Client-server conversation persisting method based on user dialogue mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011104573827A CN102546795A (en) 2011-12-31 2011-12-31 Client-server conversation persisting method based on user dialogue mode

Publications (1)

Publication Number Publication Date
CN102546795A true CN102546795A (en) 2012-07-04

Family

ID=46352741

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011104573827A Pending CN102546795A (en) 2011-12-31 2011-12-31 Client-server conversation persisting method based on user dialogue mode

Country Status (1)

Country Link
CN (1) CN102546795A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111405130A (en) * 2020-06-01 2020-07-10 上海慧捷智能技术有限公司 Voice interaction system and method
CN113544771A (en) * 2019-03-26 2021-10-22 株式会社东海理化电机制作所 Voice conversation device, input device, and output device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1717676A (en) * 2002-10-04 2006-01-04 茨特里克斯系统公司 Methods and systems for communicating over a client-server network
CN1863061A (en) * 2005-09-28 2006-11-15 华为技术有限公司 Method of automatically recovering of mobile terminal on internet game interrupting and system thereof
CN101453525A (en) * 2007-11-30 2009-06-10 国际商业机器公司 Method and apparatus for restoring conversation between customer equipments and IVR system
CN102236587A (en) * 2010-04-28 2011-11-09 上海中标软件有限公司 Recovery method for abnormal firefox browser

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1717676A (en) * 2002-10-04 2006-01-04 茨特里克斯系统公司 Methods and systems for communicating over a client-server network
CN1863061A (en) * 2005-09-28 2006-11-15 华为技术有限公司 Method of automatically recovering of mobile terminal on internet game interrupting and system thereof
CN101453525A (en) * 2007-11-30 2009-06-10 国际商业机器公司 Method and apparatus for restoring conversation between customer equipments and IVR system
CN102236587A (en) * 2010-04-28 2011-11-09 上海中标软件有限公司 Recovery method for abnormal firefox browser

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113544771A (en) * 2019-03-26 2021-10-22 株式会社东海理化电机制作所 Voice conversation device, input device, and output device
CN111405130A (en) * 2020-06-01 2020-07-10 上海慧捷智能技术有限公司 Voice interaction system and method
CN111405130B (en) * 2020-06-01 2020-09-01 上海慧捷智能技术有限公司 Voice interaction system and method

Similar Documents

Publication Publication Date Title
CN104753817B (en) A kind of cloud computing Message Queuing Services local analogy method and system
CN111045656A (en) Method and system for constructing platform system infrastructure in government affair service
CN110413676B (en) Database access method and device, electronic equipment and medium
CN112527879B (en) Kafka-based real-time data extraction method and related equipment
CN103778034A (en) Cloud storage-based data backup disaster recovery method and system
CN108509523A (en) Structuring processing method, equipment and the readable storage medium storing program for executing of block chain data
CN102111301A (en) General file transmission system and implementation method thereof
CN103034527A (en) Hybrid virtualization cloud computing resource optimal control method and system
CN103618762A (en) System and method for enterprise service bus state pretreatment based on AOP
CN104461747A (en) Distributed type task scheduling system
CN110162512A (en) A kind of log searching method, apparatus and storage medium
CN105656947B (en) A kind of methods, devices and systems that transaction middleware is interacted with third party system
CN105516086A (en) Service processing method and apparatus
CN108964986A (en) Cooperative office system application layer dual-active disaster recovery and backup systems
CN112419129A (en) Method and system for constructing platform system infrastructure in government affair service
CN112132299A (en) Operation and maintenance work order management system and method
CN109858772A (en) A kind of processing method of work order, device and system
CN108123826B (en) Cross-region data interaction system and method
CN104881749A (en) Data management method and data storage system for multiple tenants
CN102546795A (en) Client-server conversation persisting method based on user dialogue mode
CN1988477A (en) Network managing system with high usability property
CN108154343B (en) Emergency processing method and system for enterprise-level information system
CN111190731A (en) Cluster task scheduling system based on weight
CN100426241C (en) Message level soft interrupt processing method in service system structure
EP3396553B1 (en) Method and device for processing data after restart of node

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: CHENGDU GOLDTEL INDUSTRY GROUP CO., LTD.

Free format text: FORMER OWNER: CHENGDU BABITA NETWORK TECHNIQUE CO., LTD.

Effective date: 20130110

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20130110

Address after: 610041, 3, West Avenue, West Park, hi tech Zone, Sichuan, Chengdu

Applicant after: Chengdu GoldTel Industry Group Co., Ltd.

Address before: 610041 No. 3 West core road, hi tech Zone, Sichuan, Chengdu

Applicant before: Chengdu Babata Network Technology Co., Ltd.

C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120704