CN103491057A - Method, system and device for sharing session data - Google Patents

Method, system and device for sharing session data Download PDF

Info

Publication number
CN103491057A
CN103491057A CN201210192770.1A CN201210192770A CN103491057A CN 103491057 A CN103491057 A CN 103491057A CN 201210192770 A CN201210192770 A CN 201210192770A CN 103491057 A CN103491057 A CN 103491057A
Authority
CN
China
Prior art keywords
session
web server
request message
field
request
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
CN201210192770.1A
Other languages
Chinese (zh)
Inventor
潘俊
付章华
祝明远
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE ICT Technologies Co Ltd
Original Assignee
ZTE ICT Technologies 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 ZTE ICT Technologies Co Ltd filed Critical ZTE ICT Technologies Co Ltd
Priority to CN201210192770.1A priority Critical patent/CN103491057A/en
Publication of CN103491057A publication Critical patent/CN103491057A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention discloses a method for sharing session data. The method includes the first step of judging whether request content in a request message is a write operation request or a read operation request when any Web server in a Web server cluster detects that the Web server itself receives the request message, the second step of updating session fields according to the request message if the request content is the write operation request, and then sending the updated session fields to a session storage server, and the third step of extracting the corresponding session fields from the session data according to the request message if the request content is the read operation request, and then sending the corresponding session fields to corresponding clients. Meanwhile, the invention further discloses a system and device for sharing the session data. By the adoption of the method, system and device for sharing the session data, the sharing efficiency for the session data of the Web server cluster is improved, and moreover configuration of the Web server cluster is not increased.

Description

A kind of method, system and device of shared session data
Technical field
The present invention relates to Internet technical field, relate in particular to the method, system and device of a kind of shared session (Session) data.
Background technology
When the user uses any one website of client-access, any Web server in the network of client and this website (Web) server cluster connects, in described Web server, preserve with described client from establishing a connection in disconnecting during this period of time all information that produce, be session (Session).Described Session comprises Session variable and Session identification number (ID, Identity) two parts, and wherein the Session variable storage is in Web server, and Session ID is stored in client.Session between described Web server preservation and client comprises: after Web server is received the request of the beginning session that client is sent, generate Session ID corresponding to this session, and Session ID is sent to described client; After Web server detects the request message that described client sends, according to the Session ID in request message, and the operation being read or write of the information of the Session of the correspondence of self being preserved according to the content of request message.But, when the Web server of preserving the Session data breaks down, will utilize existing Session data to provide service for client, so, need client again with the Web server cluster of accessed website in a Web server connect, this can make troubles to the client-access website.
At present, for addressing the above problem, the method of Session data sharing has been proposed, be specially: in the Web server cluster, when Web server detects data in the Session that any one Session ID of self preserving is corresponding and changes, this Web server will send the data Replica of change in other Web servers of Web server cluster.So, just can avoid a Web server to break down, and affect the situation of client-access website.
But, the method of above-mentioned Session data sharing, due to need to be by the data Replica in the Session send changed in each Web server in the Web server cluster in other Web servers, cause the Session data to be easy to reticulate mutual transmission in the Web server cluster, will make like this efficiency of Session data sharing lower; In addition, need each Web server in the Web server cluster to know the position of other Web servers, so, make the configuration of Web server cluster comparatively complicated.
Visible, the method of existing Session data sharing, participate in carrying out the Session data sharing because all Web servers in needs Web server cluster are common, cause the Web server cluster to share the inefficiency of Session data, and the configuration of Web server cluster is comparatively complicated.
Summary of the invention
In view of this, the object of the present invention is to provide a kind of method, system and device of shared Session data, can improve Web server in the Web server cluster and share the efficiency of Session data, and not increase the configuration of Web server cluster.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention provides a kind of method of shared Session data, the method comprises:
Web server in the Web server cluster detects while self receiving request message, judge that the request content in this request message is write operation request or read operation request, if write operation request, according to request message, upgrade the Session field, the Session field after upgrading is sent to the Session storage server;
If read operation request, according to request message, the Session field corresponding from the Session extracting data issued corresponding client.
In such scheme, described Session field after upgrading is sent to the Session storage server, comprise: Web server is written as lastest imformation by the Session field after upgrading and the Session ID in request message, and lastest imformation is issued to the Session storage server.
In such scheme, described Session field after upgrading is sent to the Session storage server after, the method also comprises: the Session field after the renewal that the Session storage server is sent according to Web server is upgraded corresponding Session field.
In such scheme, Session field after the renewal that described Session storage server is sent according to Web server is upgraded corresponding Session field, comprise: whether the real-time detection of Session storage server receives the lastest imformation that Web server is sent, if receive, from lastest imformation, extract SessionID and determine that this upgrades corresponding Session data, according to the Session field after the renewal in lastest imformation, upgrade the Session field of self preserving again; If do not receive, continue the lastest imformation whether real-time detection receives that Web server is sent.
In such scheme, the described Session field corresponding from the Session extracting data according to request message comprises:
Web server extracts the Session ID in request message, according to Session ID, determines the Session data that request message is corresponding, then according to the request content in request message from Session extracting data Session field;
Perhaps,
Web server extracts the Session ID in request message, determine Session data corresponding to request message from the Session storage server according to Session ID, Web server is again according to the Session extracting data Session field from the Session storage server of the request content in request message.
In such scheme, before described Web server detects and self receives request message, the method also comprises:
Whether the real-time detection of the Web server in the Web server cluster receives the request that starts session, if, generate Session ID and this Session ID is issued to the Session storage server, continue real-time detection and whether receive the request that starts session; Otherwise Web server detects self whether to receive request message.
In such scheme, described this Session ID is issued to the Session storage server after, the method also comprises: the Session storage server also can receive and preserve the SessionID that Web server is sent.
The invention provides a kind of method of shared Session data, the method comprises:
Session field after the renewal that the Session storage server is sent according to Web server, upgrade corresponding Session field.
In such scheme, Session field after the renewal that described Session storage server is sent according to Web server, upgrade corresponding Session field, comprise: whether the real-time detection of Session storage server receives the lastest imformation that Web server is sent, if receive, from lastest imformation, extract Session ID and determine that this upgrades corresponding Session data, then, according to the Session field after the renewal in lastest imformation, upgrade the Session field of self preserving; If do not receive, continue the lastest imformation whether real-time detection receives that Web server is sent.
In such scheme, before Session field corresponding to described renewal, the method also comprises: the Session storage server receives and preserves the Session ID that Web server is sent.
In such scheme, before the Session ID that described reception preservation Web server are sent, the method also comprises: whether the real-time detection of the Web server in the Web server cluster receives the request that starts session, if, generate Session ID and this Session ID is issued to the Session storage server, continuing real-time detection and whether receive the request that starts session; Otherwise Web server detects self whether to receive request message.
In such scheme, Session field after the renewal that described Session storage server is sent according to Web server, before upgrading corresponding Session field, the method also comprises: the Web server in the Web server cluster detects while self receiving request message, judge that the request content in this request message is write operation request or read operation request, if write operation request, according to request message, upgrade the Session field, the Session field after upgrading is sent to the Session storage server.
The present invention also provides a kind of system of shared Session data, and this system comprises: Web server and Session storage server; Wherein,
Web server, be used in the Web server cluster, when detecting while self receiving request message, judge that the request content in this request message is write operation request or read operation request, if the write operation request, upgrade the Session field according to request message, the Session field after upgrading is sent to the Session storage server, if read operation request, according to request message, the Session field corresponding from the Session extracting data issued corresponding client;
The Session storage server, upgrade corresponding Session field for the Session field after the renewal of sending according to Web server.
The invention provides a kind of Web server, this Web server comprises: detecting unit, processing unit and data storage cell; Wherein,
Detecting unit, for when detecting while self receiving request message, send to processing unit by request message;
Processing unit, for judging that the request content of the request message that detecting unit is sent is write operation request or read operation request, if write operation request, according to request message, upgrade the Session field in data storage cell, the Session field of extracting after upgrading sends to the Session storage server, if read operation request, Session field corresponding to the Session extracting data from data storage cell according to request message, issue corresponding client by the Session field;
Data storage cell, upgrade the Session field of self storage for the operation according to processing unit, and provide the Session field for processing unit.
In such scheme, described processing unit, be written as lastest imformation specifically for the Session field by after upgrading and the Session ID in request message, and lastest imformation is issued to the Session storage server.
In such scheme, described processing unit, specifically for extracting the Session ID in request message, determine according to Session ID the Session data that request message is corresponding, then extract the Session field according to the request content in request message from data storage cell;
Perhaps,
Described processing unit, specifically for extracting the Session ID in request message, determine Session data corresponding to request message from the Session storage server according to Session ID, Web server is again according to the Session extracting data Session field from the Session storage server of the request content in request message.
In such scheme, whether described detecting unit, also receive for detection in real time the request that starts session, if, generate Session ID and this Session ID is issued to the Session storage server, continue real-time detection and whether receive the request that starts session; Otherwise, detect self and whether receive request message.
The present invention also provides a kind of Session storage server, and described Session storage server comprises: information reception & disposal unit and Session data storage cell; Wherein,
The information transmit-receive processing unit, send to the Session data storage cell for the Session field after the renewal that Web server is sent;
The Session data storage cell, upgrade corresponding Session field for the Session field after the renewal of sending according to information reception & disposal unit.
In such scheme, described information transmit-receive processing unit, also for detection in real time, whether receive the lastest imformation that Web server is sent, if receive, from lastest imformation, extract Session ID and determine that this upgrades corresponding Session data, according to the Session field after the renewal in lastest imformation, upgrade the Session field that the Session data storage cell is preserved again; If do not receive, continue the lastest imformation whether real-time detection receives that Web server is sent.
In such scheme, described information transmit-receive processing unit, also send to the Session data storage cell for the Session ID that Web server is sent;
Accordingly, described Session data storage cell, the Session ID also sent for receiving and preserve the information transmit-receive processing unit.
The method of shared Session data provided by the present invention, system and device, can detect while self receiving request message when Web server, upgrade the Session field according to request message, Session field after upgrading is sent to the Session storage server, perhaps according to request message, the Session field corresponding from the Session extracting data issued corresponding client, so, just can directly the Session data be kept to the Session storage server, and can in real time the Session data after upgrading be kept to the Session storage server, thereby, the problem of the efficiency of Session data is shared in the reduction of avoiding in prior art the Session data after upgrading in Web server are kept to a plurality of Web servers in the Web server cluster and bringing, can improve the efficiency of the shared Session data of Web server in the Web server cluster,
In addition, due to the Session data in Web server in the Web server cluster, only need write the Session storage server or read from the Session storage server, so can not increase the configuration complexity of Web server cluster.
The accompanying drawing explanation
Fig. 1 is the method flow schematic diagram that the present invention shares the Session data;
Fig. 2 is the composition structural representation that the present invention shares the system of Session data.
Embodiment
Basic thought of the present invention is: any Web server in the Web server cluster detects while self receiving request message, judge that the request content in this request message is write operation request or read operation request, if write operation request, according to request message, upgrade the Session field, the Session field after upgrading is sent to the Session storage server; If read operation request, according to request message, the Session field corresponding from the Session extracting data issued corresponding client.
Below in conjunction with drawings and the specific embodiments, the present invention is further described in more detail.
The present invention proposes a kind of method of shared Session data, as shown in Figure 1, comprises the following steps:
In step 101:Web server cluster, any Web server detects self whether to receive request message, if receive, performs step 102; Otherwise, repeated execution of steps 101.
Here, the described request message be in prior art, stipulate when client browses web sites, the message that corresponding Web server cluster sends to this website, comprising: Session ID and request content; Wherein, the described request content is: write operation request and read operation request;
The said write operation requests is the operation requests of the Session field in the Session data of revising, increasing or rewriting current preservation.
Described Web server is any Web server in the Web server cluster.
Step 102: this Web server judges that the request content in this request message is write operation request or read operation request, if the write operation request performs step 103; If read operation request, perform step 104.
Concrete, this Web server first extracts the Session ID in request message, check the Session data of self whether preserving corresponding Session ID, if there is no the Session data of corresponding Session ID, according to the Session ID in request message, from the Session storage server, extract the Session data that this SessionID is corresponding and preserve, Web server judges that the request content in this request message is write operation request or read operation request again, if the write operation request, perform step 103; If read operation request, perform step 104;
If the Session data of corresponding Session ID are arranged, Web server judges that the request content in this request message is write operation request or read operation request, if the write operation request performs step 103; If read operation request, perform step 104.
Step 103: this Web server upgrades the Session field according to request message, and the Session field after upgrading is sent to the Session storage server, the end process flow process.
Here, described renewal Session field is: Web server is according to the write operation request in request message, according to the corresponding Session field of write operation request, operated, such as, write operation request in request message is for need to modify to user name the time, and " session-name " field in the Session data that self is preserved is modified;
Describedly send to the Session storage server to comprise the Session field after upgrading: Web server is written as lastest imformation by the Session field after upgrading and the Session ID in request message, and lastest imformation is issued to the Session storage server.
In addition, after execution step 103, Session field after the renewal that described Session storage server also can be sent according to Web server is upgraded corresponding Session field, be specially: whether the real-time detection of Session storage server receives the lastest imformation that Web server is sent, if receive, from lastest imformation, extract Session ID and determine that this upgrades corresponding Session data, according to the Session field after the renewal in lastest imformation, upgrade the Session field of self preserving again; If do not receive, continue the lastest imformation whether real-time detection receives that Web server is sent.
Step 104: this Web server according to request message the Session field corresponding from the Session extracting data issue corresponding client.
Here, the described Session field corresponding from Session extracting data request message can be: Web server extracts the Session ID request message, determine according to Session ID the Session data that request message is corresponding, then according to the request content in request message from Session extracting data Session field; Can be also: Web server extracts the Session ID in request message, determine Session data corresponding to request message from the Session storage server according to Session ID, Web server is again according to the Session extracting data Session field from the Session storage server of the request content in request message.
Before execution step 101, Web server also can proceed as follows:
In step a:Web server cluster, whether any real-time detection of Web server receives the request that starts session, if perform step b; Otherwise, perform step 101.
Here, the request of described beginning session is the type of message of stipulating in prior art, can whether comprise by judging in message " Session Start () " field, judges whether corresponding request message is the request that starts session.
Step b:Web server generates Session ID, and this Session ID is sent to the Session storage server, returns to step a.
Be specially: Web server generates Session ID, this Session ID is sent to the Session storage server, and this Session ID is issued to client, returns to step a;
Here, described generation Session ID is prior art, does not do and repeats here; Described this SessionID is issued to client is prior art, does not do and repeats here.
After above-mentioned steps b completes, described Session storage server also can receive and preserve the Session ID that Web server is sent, be specially: whether the real-time detection of Session storage server receives the Session ID that Web server is sent, if receive, preserves Session ID; If confiscate, continue the Session ID whether real-time detection receives that Web server is sent.
As shown in Figure 2, the invention provides a kind of system of shared Session data, this system comprises: Web server 21 and Session storage server 22; Wherein,
Web server 21, be used in Web server 21 clusters, when detecting while self receiving request message, judge that the request content in this request message is write operation request or read operation request, if write operation request, according to request message, upgrade the Session field, Session field after upgrading is sent to Session storage server 22, if read operation request, according to request message, the Session field corresponding from the Session extracting data issued corresponding client;
Session storage server 22, upgrade corresponding Session field for the Session field after the renewal of sending according to Web server 21.
Described Web server 21 is any Web server 21 in Web server 21 clusters.
Whether described Web server 21, receive request message specifically for detecting self, if receive, judges that the request content in this request message is write operation request or read operation request; Otherwise, continue to detect self whether to receive request message.
Described Web server 21, specifically for first extracting the Session ID in request message, check the Session data of self whether preserving corresponding Session ID, if there is no corresponding Session ID, according to the Session ID in request message, from Session storage server 22, extract the Session data that this SessionID is corresponding and preserve, then judging that the request content in this request message is write operation request or read operation request; If corresponding Session ID is arranged, directly judge that the request content in this request message is write operation request or read operation request.
Described Web server 21, specifically for the write operation request according in request message, operate the Session field obtained after upgrading according to the corresponding Session field of write operation request.
Described Web server 21, be written as lastest imformation specifically for the Session field by after upgrading and the Session ID in request message, and lastest imformation is issued to Session storage server 22; Accordingly, described Session storage server 22, whether receive specifically for detection in real time the lastest imformation that Web server 21 is sent, if receive, from lastest imformation, extract Session ID and determine that this upgrades corresponding Session data, then, according to the Session field after the renewal in lastest imformation, upgrade the Session field of self preserving, if do not receive, continue the lastest imformation whether real-time detection receives that Web server 21 is sent.
Described Web server 21, specifically for extracting the Session ID in request message, determine according to Session ID the Session data that request message is corresponding, then according to the request content in request message from Session extracting data Session field; Perhaps, extract the Session ID in request message, determine Session data corresponding to request message from Session storage server 22 according to Session ID, then according to the Session extracting data Session field from Session storage server 22 of the request content in request message; Accordingly, described Session storage server 22, also be used to Web server 21 that self Session data of storage is provided.
Whether described Web server 21, also receive for detection in real time the request that starts session, if, generate Session ID, and this Session ID is sent to Session storage server 22, otherwise, detect and whether receive request message.
Described Web server 21, also for Session ID is sent to Session storage server 22, and issue client by this Session ID; Accordingly, described Session storage server 22, the Session ID also sent for receiving and preserve Web server 21.
Described Session storage server 22, whether receive specifically for detection in real time the Session ID that Web server 21 is sent, if receive, preserve Session ID, if confiscate, continue the Session ID whether real-time detection receives that Web server 21 is sent.
Described Web server 21 comprises: detecting unit 211, processing unit 212 and data storage cell 213; Wherein,
Detecting unit 211, for when detecting while self receiving request message, send to processing unit 212 by request message;
Processing unit 212, for judging that the request content of the request message that detecting unit 211 is sent is write operation request or read operation request, if write operation request, according to request message, upgrade the Session field in data storage cell 213, the Session field of extracting after upgrading sends to Session storage server 22, if read operation request, Session field corresponding to the Session extracting data from data storage cell 213 according to request message, issue corresponding client by the Session field;
Data storage cell 213, upgrade the Session field of self storage for the operation according to processing unit 212, and provide the Session field for processing unit 212.
Whether described detecting unit 211, receive request message specifically for detecting self, if receive, request message sent to processing unit 212, otherwise, continue to detect self whether to receive request message.
Described processing unit 212, specifically for first extracting the Session ID in request message, check whether data storage cell 213 preserves the Session data of corresponding Session ID, if there is no corresponding Session ID, according to the Session ID in request message, from Session storage server 22, extract corresponding Session data and be saved in data storage cell 213, then judging that the request content in this request message is write operation request or read operation request; If corresponding Session ID is arranged, directly judge that the request content in this request message is write operation request or read operation request.
Described processing unit 212, specifically for the write operation request according in request message, operate the Session field obtained after upgrading to corresponding Session field in data memory cell 213 according to the write operation request.
Described processing unit 212, be written as lastest imformation specifically for the Session field by after upgrading and the Session ID in request message, and lastest imformation is issued to Session storage server 22.
Described processing unit 212, specifically for extracting the Session ID in request message, determine according to SessionID the Session data that request message is corresponding, then extract the Session field according to the request content in request message from data storage cell 213; Perhaps, extract the Session ID in request message, determine Session data corresponding to request message from Session storage server 22 according to Session ID, then according to the Session extracting data Session field from Session storage server 22 of the request content in request message.
Whether described detecting unit 211, also receive for detection in real time the request that starts session, if, generate Session ID, and this Session ID is sent to Session storage server 22, and this Session ID is issued to client, otherwise, detect and whether receive request message.
Described Session storage server 22 comprises: information reception & disposal unit 221 and Session data storage cell 222; Wherein,
Information transmit-receive processing unit 221, send to Session data storage cell 222 for the Session field after the renewal that Web server 21 is sent;
Session data storage cell 222, upgrade corresponding Session field for the Session field after the renewal of sending according to information reception & disposal unit 221.
Described information transmit-receive processing unit 221, also be used to Web server 21 that the Session data of Session data storage cell 222 storages are provided; Accordingly, described Session data storage cell 222, also be used to information reception & disposal unit 221 that the Session data are provided.
Described information transmit-receive processing unit 221, also send to Session data storage cell 222 for the Session ID that Web server 21 is sent; Accordingly, described Session data storage cell 222, the Session ID also sent for receiving and preserve information transmit-receive processing unit 221.
Described information transmit-receive processing unit 221, whether receive specifically for detection in real time the Session ID that Web server 21 is sent, if receive, the Session ID Web server 21 sent sends to Session data storage cell 222, if confiscate, continue the Session ID whether real-time detection receives that Web server 21 is sent.
The above, be only preferred embodiment of the present invention, is not intended to limit protection scope of the present invention.

Claims (20)

1. the method for shared session Session data, is characterized in that, the method comprises:
When the Web server in network Web server cluster detects and self receives request message, judge that the request content in this request message is write operation request or read operation request, if write operation request, according to request message, upgrade the Session field, the Session field after upgrading is sent to the Session storage server;
If read operation request, according to request message, the Session field corresponding from the Session extracting data issued corresponding client.
2. method according to claim 1, it is characterized in that, described Session field after upgrading is sent to the Session storage server, comprise: Web server is written as lastest imformation by the Session field after upgrading and the Session identification number ID in request message, and lastest imformation is issued to the Session storage server.
3. method according to claim 1 and 2, it is characterized in that, described Session field after upgrading is sent to the Session storage server after, the method also comprises: the Session field after the renewal that the Session storage server is sent according to Web server is upgraded corresponding Session field.
4. method according to claim 3, it is characterized in that, Session field after the renewal that described Session storage server is sent according to Web server is upgraded corresponding Session field, comprise: whether the real-time detection of Session storage server receives the lastest imformation that Web server is sent, if receive, from lastest imformation, extract Session ID and determine that this upgrades corresponding Session data, according to the Session field after the renewal in lastest imformation, upgrade the Session field of self preserving again; If do not receive, continue the lastest imformation whether real-time detection receives that Web server is sent.
5. method according to claim 1, is characterized in that, the described Session field corresponding from the Session extracting data according to request message comprises:
Web server extracts the Session ID in request message, according to Session ID, determines the Session data that request message is corresponding, then according to the request content in request message from Session extracting data Session field;
Perhaps,
Web server extracts the Session ID in request message, determine Session data corresponding to request message from the Session storage server according to Session ID, Web server is again according to the Session extracting data Session field from the Session storage server of the request content in request message.
6. method according to claim 1, is characterized in that, before described Web server detects and self receives request message, the method also comprises:
Whether the real-time detection of the Web server in the Web server cluster receives the request that starts session, if, generate Session ID and this Session ID is issued to the Session storage server, continue real-time detection and whether receive the request that starts session; Otherwise Web server detects self whether to receive request message.
7. method according to claim 6, is characterized in that, described this Session ID is issued to the Session storage server after, the method also comprises: the Session storage server also can receive and preserve the Session ID that Web server is sent.
8. the method for shared Session data, is characterized in that, the method comprises:
Session field after the renewal that the Session storage server is sent according to Web server, upgrade corresponding Session field.
9. method according to claim 8, it is characterized in that, Session field after the renewal that described Session storage server is sent according to Web server, upgrade corresponding Session field, comprise: whether the real-time detection of Session storage server receives the lastest imformation that Web server is sent, if receive, from lastest imformation, extract Session ID and determine that this upgrades corresponding Session data, according to the Session field after the renewal in lastest imformation, upgrade the Session field of self preserving again; If do not receive, continue the lastest imformation whether real-time detection receives that Web server is sent.
10. method according to claim 8 or claim 9, is characterized in that, before Session field corresponding to described renewal, the method also comprises: the Session storage server receives and preserve the Session ID that Web server is sent.
11. method according to claim 10, it is characterized in that, before the Session ID that described reception preservation Web server are sent, the method also comprises: whether the real-time detection of the Web server in the Web server cluster receives the request that starts session, if, generate Session ID and this Session ID is issued to the Session storage server, continuing real-time detection and whether receive the request that starts session; Otherwise Web server detects self whether to receive request message.
12. method according to claim 8, it is characterized in that, Session field after the renewal that described Session storage server is sent according to Web server, before upgrading corresponding Session field, the method also comprises: the Web server in the Web server cluster detects while self receiving request message, judge that the request content in this request message is write operation request or read operation request, if write operation request, according to request message, upgrade the Session field, the Session field after upgrading is sent to the Session storage server.
13. the system of shared Session data, is characterized in that, this system comprises: Web server and Session storage server; Wherein,
Web server, be used in the Web server cluster, when detecting while self receiving request message, judge that the request content in this request message is write operation request or read operation request, if the write operation request, upgrade the Session field according to request message, the Session field after upgrading is sent to the Session storage server, if read operation request, according to request message, the Session field corresponding from the Session extracting data issued corresponding client;
The Session storage server, upgrade corresponding Session field for the Session field after the renewal of sending according to Web server.
14. a Web server, is characterized in that, this Web server comprises: detecting unit, processing unit and data storage cell; Wherein,
Detecting unit, for when detecting while self receiving request message, send to processing unit by request message;
Processing unit, for judging that the request content of the request message that detecting unit is sent is write operation request or read operation request, if write operation request, according to request message, upgrade the Session field in data storage cell, the Session field of extracting after upgrading sends to the Session storage server, if read operation request, Session field corresponding to the Session extracting data from data storage cell according to request message, issue corresponding client by the Session field;
Data storage cell, upgrade the Session field of self storage for the operation according to processing unit, and provide the Session field for processing unit.
15. Web server according to claim 14, is characterized in that,
Described processing unit, be written as lastest imformation specifically for the Session field by after upgrading and the Session ID in request message, and lastest imformation is issued to the Session storage server.
16. Web server according to claim 14, is characterized in that,
Described processing unit, specifically for extracting the Session ID in request message, determine according to Session ID the Session data that request message is corresponding, then extract the Session field according to the request content in request message from data storage cell;
Perhaps,
Described processing unit, specifically for extracting the Session ID in request message, determine Session data corresponding to request message from the Session storage server according to Session ID, Web server is again according to the Session extracting data Session field from the Session storage server of the request content in request message.
17. Web server according to claim 14, is characterized in that,
Whether described detecting unit, also receive for detection in real time the request that starts session, if, generate Session ID and this Session ID is issued to the Session storage server, continue real-time detection and whether receive the request that starts session; Otherwise, detect self and whether receive request message.
18. a Session storage server, is characterized in that, described Session storage server comprises: information reception & disposal unit and Session data storage cell; Wherein,
The information transmit-receive processing unit, send to the Session data storage cell for the Session field after the renewal that Web server is sent;
The Session data storage cell, upgrade corresponding Session field for the Session field after the renewal of sending according to information reception & disposal unit.
19. Session storage server according to claim 18, is characterized in that,
Described information transmit-receive processing unit, also for detection in real time, whether receive the lastest imformation that Web server is sent, if receive, from lastest imformation, extract Session ID and determine that this upgrades corresponding Session data, according to the Session field after the renewal in lastest imformation, upgrade the Session field that the Session data storage cell is preserved again; If do not receive, continue the lastest imformation whether real-time detection receives that Web server is sent.
20. Session storage server according to claim 18, is characterized in that,
Described information transmit-receive processing unit, also send to the Session data storage cell for the Session ID that Web server is sent;
Accordingly, described Session data storage cell, the Session ID also sent for receiving and preserve the information transmit-receive processing unit.
CN201210192770.1A 2012-06-12 2012-06-12 Method, system and device for sharing session data Pending CN103491057A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210192770.1A CN103491057A (en) 2012-06-12 2012-06-12 Method, system and device for sharing session data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210192770.1A CN103491057A (en) 2012-06-12 2012-06-12 Method, system and device for sharing session data

Publications (1)

Publication Number Publication Date
CN103491057A true CN103491057A (en) 2014-01-01

Family

ID=49831020

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210192770.1A Pending CN103491057A (en) 2012-06-12 2012-06-12 Method, system and device for sharing session data

Country Status (1)

Country Link
CN (1) CN103491057A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453661A (en) * 2016-12-09 2017-02-22 北京酷我科技有限公司 Session management method for HTTP server cluster
CN106790123A (en) * 2016-12-27 2017-05-31 努比亚技术有限公司 Realize the shared systems of Session, method, server and cluster device
CN108306928A (en) * 2017-12-22 2018-07-20 努比亚技术有限公司 Session management methods, web server and computer readable storage medium
CN105472002B (en) * 2015-12-09 2018-11-02 国家电网公司 Based on the session synchronization method copied immediately between clustered node

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070033284A1 (en) * 2005-08-02 2007-02-08 Kwang Nam Gung System server for data processing with multiple clients and a data processing method
CN101860549A (en) * 2010-06-25 2010-10-13 山东中创软件商用中间件股份有限公司 Access session data processing method under Web Service and device
CN201682522U (en) * 2010-02-08 2010-12-22 阿里巴巴集团控股有限公司 Conversation information storage system and application server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070033284A1 (en) * 2005-08-02 2007-02-08 Kwang Nam Gung System server for data processing with multiple clients and a data processing method
CN201682522U (en) * 2010-02-08 2010-12-22 阿里巴巴集团控股有限公司 Conversation information storage system and application server
CN101860549A (en) * 2010-06-25 2010-10-13 山东中创软件商用中间件股份有限公司 Access session data processing method under Web Service and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105472002B (en) * 2015-12-09 2018-11-02 国家电网公司 Based on the session synchronization method copied immediately between clustered node
CN106453661A (en) * 2016-12-09 2017-02-22 北京酷我科技有限公司 Session management method for HTTP server cluster
CN106790123A (en) * 2016-12-27 2017-05-31 努比亚技术有限公司 Realize the shared systems of Session, method, server and cluster device
CN108306928A (en) * 2017-12-22 2018-07-20 努比亚技术有限公司 Session management methods, web server and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN102655481B (en) A kind of instant messaging chat content inspection method based on webpage and system
CN103248651B (en) A kind of method and system of performance monitoring and client and server
CN105488837A (en) Cloud computing based real-time off-screen rendering method, apparatus and system
CN103095732A (en) Information push system and information push method
CN103281359A (en) Cloud desktop system and operating method
CN103747074B (en) mobile monitoring system based on Web server
CN102752371B (en) In client, realize method and the client of dodging screen
CN110324405B (en) Message sending method, device, system and computer readable storage medium
CN102737065A (en) Method and device for acquiring data
CN103491057A (en) Method, system and device for sharing session data
EP2827258A1 (en) Embedded network proxy system, terminal device and proxy method
Sahadevan et al. An offline online strategy for IoT using MQTT
CN104615597A (en) Method, device and system for clearing cache file in browser
CN102932358B (en) Third party's file of content-based distributing network is rewritten and is accelerated distribution method and device
CN103220260B (en) The more method of new data, server, client and system
CN102118406A (en) Offline downloading method and portal service system for terminal equipment
CN102075584A (en) Distributed file system and access method thereof
CN102685155B (en) The method that content transmits, content delivering server and content transmit proxy server
CN106230601A (en) A kind of exchange of token method and system of the embedded webpage of client
CN103023726A (en) Method and system for testing maximum mainframe connection number of network storage device
CN105138379A (en) Method for on-line upgrading based on Ymodem protocol
US20160188362A1 (en) Library apparatus for real-time process, and transmitting and receiving method thereof
CN112333262A (en) Data updating prompting method and device, computer equipment and readable storage medium
CN103297820A (en) Advertising information processing method
CN204229461U (en) Based on the equipment alteration information apparatus of GIS platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140101

RJ01 Rejection of invention patent application after publication