[go: up one dir, main page]

CN103428171B - The processing method of a kind of session, application server and system - Google Patents

The processing method of a kind of session, application server and system Download PDF

Info

Publication number
CN103428171B
CN103428171B CN201210154417.4A CN201210154417A CN103428171B CN 103428171 B CN103428171 B CN 103428171B CN 201210154417 A CN201210154417 A CN 201210154417A CN 103428171 B CN103428171 B CN 103428171B
Authority
CN
China
Prior art keywords
session
nonregistered user
user session
nonregistered
mark
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
CN201210154417.4A
Other languages
Chinese (zh)
Other versions
CN103428171A (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.)
Alibaba Group Holding 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 CN201210154417.4A priority Critical patent/CN103428171B/en
Publication of CN103428171A publication Critical patent/CN103428171A/en
Application granted granted Critical
Publication of CN103428171B publication Critical patent/CN103428171B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

This application discloses the processing method of a kind of session, application server and system, including: receive nonregistered user session data storage request, this nonregistered user session data storage request is carried nonregistered user session mark, and the session data corresponding with this nonregistered user session mark;And to should this nonregistered user session mark in nonregistered user session data storage request, in internal memory class caches, store this session data;And when these session data are specified type data, to identifying by nonregistered user session, in persistence caches, store this session data.The scheme using the embodiment of the present application to provide, decreases the consumption carrying out processing when session processes resource for nonregistered user session.

Description

The processing method of a kind of session, application server and system
Technical field
The application relates to Internet technical field, particularly relates to a kind of session(session) processing method, Application server and system.
Background technology
At present, in Internet technology, when the Client browse website installed on user is by user terminal, Be by the web server of website between information complete alternately.Such as, note on website The registration user of volume, can be mutual by the information between web server, logs in, then with note The page that the identity of volume browses web sites, web server then for this registration user, provides miscellaneous service for it Application.
In this course, for same registration user, after this registration user, this logs in, in order to enable Enough arrange according to some parameters when logging in before this registration user, provide miscellaneous service application for it, existing Proposing the application creating session for registration user in technology, concrete scheme is as follows:
When a registration user logs in first, web server please in the login according to this registration user Seek login process such as carrying out authentication, and complete after associated login processes operation, also can should to session Send session request to create with server, wherein can carry the user name of this registration user, request Session application server is the session that this registration user creates correspondence;
Session application server after receiving this session request to create, corresponding this use wherein carried Name in an account book, distributes session mark for this registration user, and this session mark of distribution may act as this note Volume user uniquely identifies in follow-up session processes, then to marking by session on storage server Know the initialization process etc. carrying out data storage, thus complete the establishment of the session to this registration user;
After session application server is the session that this registration user creates correspondence, return to web server Return session and create success response, wherein can carry the session mark into this registration user distribution;
Web server creates after success response receiving this session, therefrom obtain carry for this registration This session mark of user's distribution, and send it to the client that this registration user is currently used, and Preserved by client, so far create the handling process of session for this registration user and terminate.
After create the session of correspondence for this registration user, within the period that this registration user logs in, In the request of the miscellaneous service application that this registration user initiates to web server, all can carry and distribute for it This session identifies, and web server, in the request for this registration user, carries out corresponding Business Processing During, information can be carried out as required with session application server mutual, complete corresponding session Process, such as, the storage of session data and inquiry etc..
As a example by the storage of session data, registration user in the request that web server sends, can Can carry this registration user configuration information for some application attributes, then these configuration informations need to make For session data, preserved by the process of corresponding session, in order to follow-up can be according to this registration This configuration information that user is corresponding, provides corresponding service application to process for this registration user, now, and web Server can send session data storage request, session application service to session application server Device is after receiving this session data storage request, and to identifying by session, storage is wherein carried Session data (such as above-mentioned configuration information), specifically all can enter in internal memory class caching and persistency cache Row storage, in order to ensure the reliability of session data storage.
In existing session treatment technology, in order to more stable, more accurate and safer for Registration user carries out session process, in session system, can use the process side that some ranks are higher Formula, in order to improve service quality.Such as, above-mentioned internal memory class caching and the pair buffers of persistency caching, And the standby usage server mechanism of session application server, and the Information Security Mechanism that rank is higher Deng.
But, for the nonregistered user session treatment technology proposed at present, it is still employing and uses with registration The treatment mechanism that family session is identical, owing to carrying out the process side that registration user session process is used Formula rank is high, and required process resource is also the most, so, for substantial amounts of nonregistered user, When still using this session processing mode, the demand processing resource can be caused relatively big, in prior art Processing scheme more reasonably for nonregistered user session is not also proposed.
Summary of the invention
In view of this, the embodiment of the present application provides the processing method of a kind of session, application server and is System, storage resource when being used for solving present in prior art processing for nonregistered user session Consume bigger problem.
The embodiment of the present application is achieved through the following technical solutions:
The embodiment of the present application provides the processing method of a kind of session, including:
Receiving nonregistered user session data storage request, described nonregistered user session data store Request is carried nonregistered user session mark, and corresponding with described nonregistered user session mark Session data;
Described nonregistered user session mark in corresponding described nonregistered user session data storage request Know, in internal memory class caches, store described session data;
When described session data are specified type data, corresponding described nonregistered user session identifies, Described session data are stored in persistence caches.
The embodiment of the present application also provides for a kind of nonregistered user session application server, including:
Receive unit, be used for receiving nonregistered user session data storage request, described nonregistered user Session data storage request is carried nonregistered user session mark, and with described nonregistered user The session data that session mark is corresponding;
Processing unit, the described non-note in corresponding described nonregistered user session data storage request Volume user session mark, stores described session data in internal memory class caches;And as described session When data are specified type data, corresponding described nonregistered user session identifies, in persistence caches Store described session data.
The embodiment of the present application also provides for the processing system of a kind of session, including: nonregistered user session Application server and registration user's session application server, wherein:
Described nonregistered user session application server, is used for receiving nonregistered user session data and deposits Storage request, carries nonregistered user session mark in described nonregistered user session data storage request, And the session data corresponding with described nonregistered user session mark;Corresponding described nonregistered user Described nonregistered user session mark in session data storage request, stores in internal memory class caches Described session data;When described session data are specified type data, corresponding described non-registered use Family session identifies, and stores described session data in persistence caches;
Described registration user's session application server, for carrying out session process for registration user.
At least one technical scheme above-mentioned provided by the embodiment of the present application, is receiving nonregistered user After session data storage request, be required for nonregistered user session carry out session data storage time, First correspond to the nonregistered user session mark in this nonregistered user session data storage request, Internal memory class caching stores session data, and, it is only specified type data when these session data Time, just can store this session data to identifying by nonregistered user session in persistence caches. Compared to existing technology, it is no longer that all types of session data are all stored in persistence caches, But the session data only for specified type just can store in persistence caches, thus reduce The consumption of storage resource when storing session data for nonregistered user session.
Other features and advantage will illustrate in the following description, and, partly from explanation Book becomes apparent, or understands by implementing the application.The purpose of the application and other advantages can Realize by structure specifically noted in the description write, claims and accompanying drawing and obtain ?.
Accompanying drawing explanation
Accompanying drawing is for providing further understanding of the present application, and constitutes a part for description, with this Shen Embodiment please be used for together explaining the application, be not intended that the restriction to the application.In the accompanying drawings:
Fig. 1 provides the flow chart of the processing method of session for the embodiment of the present application;
Fig. 2 creates nonregistered user session for provide in the embodiment of the present application 1 for nonregistered user Process chart;
Fig. 3 carries out nonregistered user session for provide in the embodiment of the present application 1 for nonregistered user Process chart;
Fig. 4 in the embodiment of the present application 1 provide for corresponding nonregistered user session and registration User session, carries out the process chart of session data syn-chronization;
The structure of the Fig. 5 nonregistered user session application server for providing in the embodiment of the present application 2 is shown It is intended to;
Fig. 6 is the structural representation of the processing system of the session of offer in the embodiment of the present application 3.
Detailed description of the invention
Reduce for storage resource consumption during nonregistered user session storage session data to be given Implementation, the embodiment of the present application provides the processing method of a kind of session, application server and system, This technical scheme can apply to the processing procedure for nonregistered user session, both can be implemented as one A kind of method of kind, it is also possible to be embodied as system.Below in conjunction with the Figure of description preferred embodiment to the application Illustrate, it will be appreciated that preferred embodiment described herein is merely to illustrate and explains the application, and It is not used in restriction the application.And in the case of not conflicting, in embodiment in the application and embodiment Feature can be mutually combined.
The embodiment of the present application provides the processing method of a kind of session, as it is shown in figure 1, include:
Step 101, reception nonregistered user session data storage request, this nonregistered user session Data storage request is carried nonregistered user session mark, and marks with this nonregistered user session Know corresponding session data.
Step 102, to should this nonregistered user in nonregistered user session data storage request Session identifies, and stores this session data in internal memory class caches.
Step 103, when these session data are specified type data, to should nonregistered user session Mark, stores this session data in persistence caches.
Further, it is contemplated that after a user uses client Website login with the identity of nonregistered user, The nonregistered user session system of side, website, can create the nonregistered user session of correspondence for this user, And the nonregistered user session of distribution is identified in this client returning and being saved in its use, but In actual application, this user may use this client Website login with the identity of registration user, logged This nonregistered user session mark preserved in client in journey also can send to side, website, then side, website Registration user's session system, can for this registration user create correspondence registration user session, and point Join or inquire the allocated registration user session mark corresponding with this registration user, such that it is able to really Make the registration of this nonregistered user session mark and this Login Register user preserved in this client User session mark is corresponding, it is thus regarded that this nonregistered user session mark is used with corresponding registration Family session identifies, and belongs to same user, so, so that this user is with nonregistered user body Processed the session data stored when part logs in by nonregistered user session, still may be used for this During user processes with the registration user session after registration user identity login, can be to registering user Session identifies, the session number corresponding with this nonregistered user session mark that storage has currently stored According to.
Further, it is contemplated that in actual application, follow-up may also have other users to use this client with it His enrollment status Website login, this nonregistered user session preserved in client in login process mark Can send equally to side, website, then registration user's session system of side, website, by should other note The process of volume user session, will determine this nonregistered user session mark preserved in this client Log in this these other registration user registration user session mark corresponding, i.e. combine before The registration user session mark corresponding with this nonregistered user session mark determined, will determine another One corresponding registration user session mark, at this point it is possible to think again determine from the most different Corresponding registration user session mark, be not belonging to same user with this nonregistered user session mark, The most now being no longer necessary to identifying by other registration user session, it is non-with this that storage has currently stored The session data that registration user session mark is corresponding, this registration user i.e. determined in above-mentioned correspondence Session identifies, the session number corresponding with this nonregistered user session mark that storage has currently stored According to before, also include determining that there is not other corresponding with this nonregistered user session mark registers user Session identifies.
Below in conjunction with the accompanying drawings, the method provided the application with specific embodiment is described in detail.
Embodiment 1:
When processing for nonregistered user session, can be non-registered by arrange in side, website User's session system performs, and specifically can include various application service in nonregistered user session system Device, to include nonregistered user session application server, internal memory class caching clothes in the embodiment of the present invention 1 Process side as a example by business device and persistence caching server, to the above-mentioned session that the embodiment of the present invention proposes Method is described in detail, specific as follows:
Fig. 2 show in the embodiment of the present invention 1 propose for nonregistered user create nonregistered user The process chart of session, specifically includes and processes step as follows:
Step 201, nonregistered user use the client web server first to side, website to send login please Ask, ask Website login.
After step 202, web server receive this logging request, carry out corresponding login process, specifically Login process can be found in the handling process of prior art, is no longer described in detail at this.
In this step, during login process, also include nonregistered user session process, specifically For sending nonregistered user session request to create to nonregistered user session application server, for asking Ask and create nonregistered user session for this nonregistered user.
Step 203, nonregistered user session application server receive this nonregistered user session wound After building request, the nonregistered user session establishment carrying out correspondence processes, and specifically may include that
Establishment for this nonregistered user session distributes nonregistered user session mark, and in storage To should nonregistered user on server (including internal memory class caching server and persistence caching server) Session mark carries out the initialization of data storage and processes.
Step 204, nonregistered user session application server return the non-registered of correspondence to web server User session creates success response, wherein carries the nonregistered user distributed for this nonregistered user Session identifies.
Step 205, web server create after success response receiving this nonregistered user session, from The nonregistered user session mark that middle acquisition is carried, and this nonregistered user session mark is returned to This client that this nonregistered user uses, specifically can be by being entrained into logining successfully in the page of return Row transmission.
This client that step 206, this nonregistered user use receives this non-note that web server returns After volume user session mark, preserve in this locality, use this client to log in also for subsequent user During browsing this website, the process of corresponding nonregistered user session.
After the establishment completing above-mentioned nonregistered user session processes, subsequent user uses this client to step on During recording and browse this website, i.e. can be based on this nonregistered user session preserved in this client Mark carries out the process of nonregistered user session, and Fig. 3 show in the embodiment of the present invention 1 pin proposed Nonregistered user is carried out the process chart of nonregistered user session, specifically includes and process step as follows:
Step 301, nonregistered user use the client having preserved nonregistered user session mark, to The web server of website sends Business Processing message, and this Business Processing message can be that information arranges message, Such as the message being configured for some attributes of the page, it is also possible to be page request message, as request from Web server obtains the Website page etc. specified.
In this Business Processing message, carry the current nonregistered user session mark preserved in client.
Step 302, web server, after receiving this Business Processing message, therefrom obtain the non-note carried Volume user session mark, and according to this Business Processing message, to nonregistered user session application service Device sends nonregistered user session and processes request, and processes request at the nonregistered user session sent In, carry this nonregistered user session mark of acquisition.
Such as, when this Business Processing message be information message is set time, accordingly, this nonregistered user session Process request is specifically as follows nonregistered user session data storage request, wherein carries and needs storage The session data corresponding with this nonregistered user session mark, this session data essence can be this The information that nonregistered user is configured for some attributes of the page;
When this Business Processing message is page request message, accordingly, at this nonregistered user session Reason request is specifically as follows nonregistered user session data acquisition request, wherein carry need to obtain with The session data that this nonregistered user session mark is corresponding, this session data essence can also be for being somebody's turn to do The information arranged before nonregistered user, the purpose of these session data of acquisition request is, can be with follow-up pin To this nonregistered user according to the setting before it, return the corresponding page.
Step 303, nonregistered user session application server receive at this nonregistered user session After reason request, therefrom obtain the nonregistered user session mark carried, and according to this nonregistered user Session processes request and carries out the process of correspondence.
Such as, deposit when this nonregistered user session processes request specially nonregistered user session data During storage request, therefrom obtain the nonregistered user session mark and corresponding session data carried, and To identifying by nonregistered user session, in internal memory class caches, store this session data, specifically may be used With on internal memory class caching server, to nonregistered user session mark storing these session data;
Then judge whether these session data are specified type data, if specified type data, then Also to identifying by nonregistered user session, in persistence caches, store this session data, specifically Can be on persistence caching server, to nonregistered user session mark storing this session number According to, if not specified type data, the most do not perform to store these session data in persistence caches Step.
It is specially nonregistered user session data acquisition request when this nonregistered user session processes request Time, therefrom obtain the nonregistered user session mark carried, and according to this nonregistered user session number The data needing request characterized according to the request that obtains, identify according to this nonregistered user session, inquiry Storage server, is specifically as follows first audit memory class caching server, therefrom obtains and this nonregistered user The session data needing to return that session mark is corresponding;If having got the session data of needs, Then need not obtaining from persistence caching server, if do not got, and needing the session obtained When data are specified type data, it is also possible to inquiry persistence caching server, therefrom obtain non-registered with this The session data needing to return that user session mark is corresponding.
Step 304, nonregistered user session application server return the non-registered of correspondence to web server User session processes response.
Such as, deposit when this nonregistered user session processes request specially nonregistered user session data During storage request, the storage success response of nonregistered user session data can be returned to web server, or Person returns nonregistered user session data storage failure response.
It is specially nonregistered user session data acquisition request when this nonregistered user session processes request Time, nonregistered user session data acquisition success response can be returned to web server, wherein carry The required session data corresponding with this nonregistered user session mark inquired, or return non- Registration user's session data acquisition failure response.
After step 305, web server receive this nonregistered user session process response of return, base Response is processed, the Business Processing sent for this client above-mentioned received in this nonregistered user session Message, carries out corresponding Business Processing operation, and this client used to this nonregistered user returns correspondence Business Processing response.Concrete Business Processing operation can carry out corresponding position according to needing in reality application Reason, is no longer described in detail at this.
In the handling process of above-mentioned nonregistered user session, may be a user with nonregistered user Identity use after client Website login, use this identical client to log in this net with enrollment status again Stand, and be also possible to user with other enrollment status, reuse this client and log in this website, this feelings Under condition, so that log in the user of this website, energy with nonregistered user identity and enrollment status for priority Enough session data that will carry out storing when nonregistered user session processes, carry out registration use for follow-up In the session processing procedure of family, the embodiment of the present invention 1 propose following for corresponding nonregistered user Session and registration user session, carries out the processing procedure of session data syn-chronization, as shown in Figure 4, Specifically include and process step as follows:
Step 401, registration user use the client having preserved nonregistered user session mark, to net The web server stood sends logging request, wherein carries the log-on message such as user name of this registration user, and And, also will carry this nonregistered user session mark.
Step 402, web server are after receiving this logging request, by the registration user with side, website It is mutual that session system carries out information, carries out the registration user's session process for this registration user, tool Body can be:
Send registration user session to registration user's session application server and process request, as registration is used The registration user's session request to create etc. sent when family first logs into, wherein carries the use of this registration user This nonregistered user session mark preserved in name in an account book, and this client.
Step 403, registration user's session application server are receiving this registration user's session process After request, registering user's session process accordingly, registration as corresponding with this user name in distribution is used Family session identifies, or inquires the allocated registration user session mark corresponding with this user name, And from this registration user session process request, obtain this nonregistered user session mark carried, with And it is relative with this nonregistered user session mark obtained to determine this registration user session obtained mark Should.
Step 404, registration user's session application server are to nonregistered user session application server Send session data synchronization request, wherein carry corresponding this registration user session mark and this is non- Registration user session mark.
Step 405, nonregistered user session application server receive this session data syn-chronization please After asking, therefrom obtain corresponding this registration user session mark and this nonregistered user session carried Mark, and judge whether other registration user session corresponding with this nonregistered user session mark Mark, be i.e. equivalent to judge whether performed for this nonregistered user session mark with The session data synchronization processing of corresponding other registration user session mark, if it is present enter Step 406, if it does not exist, then enter step 407.
Judgement step in this step can also be by registration user session application clothes in above-mentioned steps 404 Business device performs, i.e. if it is present cancel and send session to nonregistered user session application server Data synchronization request, if it does not, just perform above-mentioned to send out to nonregistered user session application server Send the step of session data synchronization request.
When this judgement step by register user's session application server perform time, non-registered use in this step Family session application server, after receiving this session data synchronization request, is directly entered follow-up step Rapid 407.
Step 406, nonregistered user session application server are cancelled at follow-up session data syn-chronization Reason, or the refusal response of session data syn-chronization can also be returned to registration user's session application server.
Step 407, nonregistered user session application server inquire stored with this nonregistered user The session data that session mark is corresponding, and return session to registration user's session application server Data sync response, wherein carries these session data inquired, and this registration user session mark Know.
Step 408, registration user's session application server are receiving this session data sync response After, therefrom obtain this registration user session mark carried, and these session data, then corresponding This registration user session identifies, and stores this session data, thus completes at the synchronization of session data Reason.
In the scheme of the session data syn-chronization shown in above-mentioned Fig. 4, it is by registration user session application Server triggers, starts the handling process synchronized to nonregistered user session application server, and other is real Executing in example, web server can also receive the registration use that registration user's session application server returns After family session processes response, therefrom obtain the registration user session mark carried, and to non-registered use Family session application server sends session data syn-chronization notice, wherein carries corresponding non-registered use Family session mark and registration user session mark, then by nonregistered user session application server Trigger, mutual by the information between registration user's session application server, complete corresponding session The handling process of data syn-chronization, as sent session data syn-chronization to registration user's session application server Instruction message, wherein carries the session data corresponding with this nonregistered user session mark inquired, And this registration user session mark, then received this by registration user's session application server After session data sync response, to user session mark should be registered, store this session data, Thus complete the synchronization process of session data.
In actual applications, for the process of nonregistered user session, it is not necessary to obtain and for registration The service quality that user session is higher when processing, so as the nonregistered user session of side, website In system, low for processing the process performance of the application server processing request of nonregistered user session In time setting performance threshold, in the embodiment of the present invention 1, proposition can be cancelled for nonregistered user and carry out The scheme that session processes.
It is specifically as follows nonregistered user session application server and is determining that the process performance of self is less than setting When determining performance threshold, the various nonregistered user session sending web server process request, return Corresponding refusal processes response;Can also work as and monitor the process performance of nonregistered user session system relatively Time low, when being less than setting performance threshold such as the process performance of nonregistered user session application server, or When person stores the storage performance of server less than setting performance threshold, close nonregistered user session process Execution, specifically can notify that web server stops sending nonregistered user session process request etc..
In compared to existing technology, registration user's session application server uses the mode of standby usage server, Carry out register user session process scheme, in the embodiment of the present invention 1 propose above-mentioned be cancelled for non- Registration user carries out the scheme of session process, further reduces the consumption processing resource.
It addition, in order to more effectively minimizing processes the consumption of resource, in the embodiment of the present invention 1, also carry Going out the nonregistered user for request specified services application, refusal is to carrying out non-registered use by nonregistered user Family session process, this process operation can be performed by web server, i.e. web server is receiving After using client to send service application process request to nonregistered user, can be according to the information carried in request Determine the type of this service application, when the type is specified type set in advance, can refuse should Nonregistered user carries out nonregistered user session process, and such as, the service application of this specified type is for searching When reptile class held up in index, i.e. can refuse to carry out nonregistered user session process, and, this kind of business Application will not be typically by registration Client-initiated.
It addition, for the Information Security Mechanism used in nonregistered user session system, it would however also be possible to employ Information Security Mechanism relatively low compared with the rank of the Information Security Mechanism that registration user's session system uses, Such as, it is not necessary to the IP address carried in asking for user carries out information security process etc..
Embodiment 2:
Based on same inventive concept, according to the processing method of the session that the above embodiments of the present application provide, Correspondingly, the embodiment of the present application 2 additionally provides a kind of nonregistered user session application server, its knot Structure schematic diagram is as it is shown in figure 5, specifically include:
Receive unit 501, be used for receiving nonregistered user session data storage request, described non-registered use Family session data storage request is carried nonregistered user session mark, and with described non-registered use The session data that session mark in family is corresponding;
Processing unit 502, described non-in corresponding described nonregistered user session data storage request Registration user session mark, stores described session data in internal memory class caches;And when described When session data are specified type data, corresponding described nonregistered user session identifies, in persistence Caching stores described session data.
Further, processing unit 502, it is additionally operable to when the place of this nonregistered user session application server Rationality can be cancelled for nonregistered user carry out session process less than when setting performance threshold.
Further, processing unit 502, it is additionally operable to the nonregistered user for request specified services application, Refuse corresponding described nonregistered user and carry out nonregistered user session process.
Embodiment 3:
Based on same inventive concept, according to the processing method of the session that the above embodiments of the present application provide, Correspondingly, the embodiment of the present application 3 additionally provides the processing system of a kind of session, and its structural representation is such as Shown in Fig. 6, specifically include: nonregistered user session application server 601 and registration user session Application server 602, wherein:
Nonregistered user session application server 601, is used for receiving nonregistered user session data and deposits Storage request, carries nonregistered user session mark in described nonregistered user session data storage request, And the session data corresponding with described nonregistered user session mark;Corresponding described nonregistered user Described nonregistered user session mark in session data storage request, stores in internal memory class caches Described session data;When described session data are specified type data, corresponding described non-registered use Family session identifies, and stores described session data in persistence caches;
Registration user's session application server 602, for carrying out session process for registration user.
Further, register user's session application server 602, specifically for non-with described when determining When the registration user session of registration user session mark correspondence identifies, to described nonregistered user session Application server 601 sends session data synchronization request, carries in described session data synchronization request Corresponding described registration user session mark and described nonregistered user session identify, and receive institute State the described session data sync response that nonregistered user session application server 601 returns, and right Should identify by described registration user session, store the session carried in described session data sync response Data;
Nonregistered user session application server 601, being additionally operable to receive described session data syn-chronization please Ask, and inquire about the session data corresponding with described nonregistered user session mark stored, and to Described registration user's session application server 602 returns described session data sync response, wherein takes These session data that band inquires.
Further, register user's session application server 602, be additionally operable to described nonregistered user Session application server sends before session data synchronization request, determine do not exist non-registered with described Other registration user session mark that user session mark is corresponding;Or
Nonregistered user session application server 601, be additionally operable to inquiry stored non-registered with described Before the session data that user session mark is corresponding, determine and do not exist and described nonregistered user session Other registration user session mark that mark is corresponding.
In sum, the scheme that the embodiment of the present application provides, including: receive nonregistered user session number According to storage request, this nonregistered user session data storage request is carried nonregistered user session mark Know, and the session data corresponding with this nonregistered user session mark;And to should non-registered use This nonregistered user session mark in the session data storage request of family, stores in internal memory class caches These session data;And when these session data are specified type data, to should nonregistered user Session identifies, and stores this session data in persistence caches.The embodiment of the present application is used to provide Scheme, decreases the consumption carrying out processing when session processes resource for nonregistered user session.
Nonregistered user session application server that embodiments herein is provided and the process of session System can be realized by computer program.Those skilled in the art are it should be appreciated that above-mentioned Module Division Mode is only the one in numerous Module Division mode, if being divided into other modules or not dividing module, only The processing system wanting nonregistered user session application server and session has above-mentioned functions, all should Within the protection domain of the application.
The application is with reference to method, equipment (system) and the computer program product according to the embodiment of the present application The flow chart of product and/or block diagram describe.It should be understood that can by computer program instructions flowchart and / or block diagram in each flow process and/or flow process in square frame and flow chart and/or block diagram and/ Or the combination of square frame.These computer program instructions can be provided to general purpose computer, special-purpose computer, embedding The processor of formula datatron or other programmable data processing device is to produce a machine so that by calculating The instruction that the processor of machine or other programmable data processing device performs produces for realizing at flow chart one The device of the function specified in individual flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and computer or the process of other programmable datas can be guided to set In the standby computer-readable memory worked in a specific way so that be stored in this computer-readable memory Instruction produce and include the manufacture of command device, this command device realizes in one flow process or multiple of flow chart The function specified in flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, makes Sequence of operations step must be performed to produce computer implemented place on computer or other programmable devices Reason, thus the instruction performed on computer or other programmable devices provides for realizing flow chart one The step of the function specified in flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
Obviously, those skilled in the art can carry out various change and modification without deviating from this Shen to the application Spirit and scope please.So, if the application these amendment and modification belong to the application claim and Within the scope of its equivalent technologies, then the application is also intended to comprise these change and modification.

Claims (11)

1. the processing method of a session session, it is characterised in that including:
Receive nonregistered user session data storage request, described nonregistered user session data storage request is carried nonregistered user session mark, and the session data corresponding with described nonregistered user session mark;
Described nonregistered user session mark in corresponding described nonregistered user session data storage request, stores described session data in internal memory class caches;
When described session data are specified type data, corresponding described nonregistered user session identifies, and stores described session data in persistence caches.
2. the method for claim 1, it is characterised in that also include:
When determining the registration user session mark corresponding with described nonregistered user session mark, the described registration user session mark that correspondence is determined, the session data corresponding with described nonregistered user session mark that storage has currently stored.
3. method as claimed in claim 2, it is characterised in that before the described registration user session mark that correspondence is determined, the session data corresponding with described nonregistered user session mark that storage has currently stored, also include:
Determine and there is not other registration user session mark corresponding with described nonregistered user session mark.
4. the method for claim 1, it is characterised in that also include:
When the process performance of the application server processing request for processing nonregistered user session is less than when setting performance threshold, it is cancelled for nonregistered user and carries out session process.
5. the method for claim 1, it is characterised in that also include:
For the nonregistered user of request specified services application, refuse corresponding described nonregistered user and carry out nonregistered user session process.
6. a nonregistered user session session application server, it is characterised in that including:
Receive unit, be used for receiving nonregistered user session data storage request, described nonregistered user session data storage request is carried nonregistered user session mark, and the session data corresponding with described nonregistered user session mark;
Processing unit, the described nonregistered user session mark in corresponding described nonregistered user session data storage request, in internal memory class caches, store described session data;And when described session data are specified type data, corresponding described nonregistered user session identifies, and stores described session data in persistence caches.
7. nonregistered user session session application server as claimed in claim 6, it is characterized in that, described processing unit, is additionally operable to, when the process performance of this nonregistered user session application server is less than when setting performance threshold, be cancelled for nonregistered user and carry out session process.
8. nonregistered user session session application server as claimed in claim 6, it is characterized in that, described processing unit, is additionally operable to the nonregistered user for request specified services application, refuses corresponding described nonregistered user and carry out nonregistered user session process.
9. the processing system of a session session, it is characterised in that including: nonregistered user session application server and registration user's session application server, wherein:
Described nonregistered user session application server, for receiving nonregistered user session data storage request, described nonregistered user session data storage request is carried nonregistered user session mark, and the session data corresponding with described nonregistered user session mark;Described nonregistered user session mark in corresponding described nonregistered user session data storage request, stores described session data in internal memory class caches;When described session data are specified type data, corresponding described nonregistered user session identifies, and stores described session data in persistence caches;
Described registration user's session application server, for carrying out session process for registration user.
null10. the processing system of session as claimed in claim 9,It is characterized in that,Described registration user's session application server,Specifically for when determining the registration user session mark corresponding with described nonregistered user session mark,Session data synchronization request is sent to described nonregistered user session application server,Described session data synchronization request is carried corresponding described registration user session mark and described nonregistered user session identifies,And receive the described session data sync response that described nonregistered user session application server returns,And correspondence described registration user session mark,Store the session data carried in described session data sync response;
Described nonregistered user session application server, it is additionally operable to receive described session data synchronization request, and inquire about the session data corresponding with described nonregistered user session mark stored, and return described session data sync response to described registration user's session application server, wherein carry these session data inquired.
The processing system of 11. session as claimed in claim 10, it is characterised in that
Described registration user's session application server, it is additionally operable to before sending session data synchronization request to described nonregistered user session application server, determines and there is not other registration user session mark corresponding with described nonregistered user session mark;Or
Described nonregistered user session application server, it is additionally operable to before the session data corresponding with described nonregistered user session mark that inquiry has stored, determines and there is not other registration user session mark corresponding with described nonregistered user session mark.
CN201210154417.4A 2012-05-17 2012-05-17 The processing method of a kind of session, application server and system Active CN103428171B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210154417.4A CN103428171B (en) 2012-05-17 2012-05-17 The processing method of a kind of session, application server and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210154417.4A CN103428171B (en) 2012-05-17 2012-05-17 The processing method of a kind of session, application server and system

Publications (2)

Publication Number Publication Date
CN103428171A CN103428171A (en) 2013-12-04
CN103428171B true CN103428171B (en) 2016-08-24

Family

ID=49652352

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210154417.4A Active CN103428171B (en) 2012-05-17 2012-05-17 The processing method of a kind of session, application server and system

Country Status (1)

Country Link
CN (1) CN103428171B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105141672B (en) * 2015-08-03 2017-09-15 广州神马移动信息科技有限公司 A kind of date storage method, apparatus and system
CN105338063A (en) * 2015-09-30 2016-02-17 北京奇虎科技有限公司 Multi-server user session sharing method and device
CN106713391B (en) * 2015-11-13 2019-12-27 北京新媒传信科技有限公司 Session information sharing method and sharing system
CN107360132B (en) * 2017-06-02 2021-03-09 台州市吉吉知识产权运营有限公司 Method and system for preventing session replay

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7359943B2 (en) * 2002-01-22 2008-04-15 Yahoo! Inc. Providing instant messaging functionality in non-instant messaging environments
CN100591078C (en) * 2007-09-28 2010-02-17 北京金山软件有限公司 A website caching method and a website caching device
US8640202B2 (en) * 2007-10-04 2014-01-28 International Business Machines Corporation Synchronizing user sessions in a session environment having multiple web services
CN201682522U (en) * 2010-02-08 2010-12-22 阿里巴巴集团控股有限公司 Conversation information storage system and application server
CN101860549B (en) * 2010-06-25 2013-03-27 山东中创软件商用中间件股份有限公司 Access session data processing method under Web Service and device

Also Published As

Publication number Publication date
CN103428171A (en) 2013-12-04

Similar Documents

Publication Publication Date Title
CN107948203B (en) A kind of container login method, application server, system and storage medium
CN108234505B (en) Account login method and system
CN107995215B (en) Control method and device of intelligent household equipment and cloud platform server
CN103369009B (en) A kind of online answering method, equipment and system
CN104184832B (en) Data submission method and device in network application
CN104158818B (en) A kind of single-point logging method and system
CN103428179B (en) A kind of log in the method for many domain names website, system and device
CN105554146B (en) A kind of remote access method and device
CN102624914B (en) Method for detecting local DNS (Domain Name Server) used by client side in Web form
CN102752300B (en) Dynamic antitheft link system and dynamic antitheft link method
CN103023918A (en) Method, system and device for uniformly providing login for multiple network services
CN106973062A (en) A kind of conversation managing method and server
CN102196060A (en) Method and system for selecting source station by Cache server
CN105512279B (en) Metadata access method, related equipment and system
CN106060004A (en) Database access method and database agent node
CN103428171B (en) The processing method of a kind of session, application server and system
CN104601702B (en) Cluster remote procedure calling (PRC) method and system
CN107436818A (en) A kind of red packet acquisition of information and the method and apparatus sent
CN101924799A (en) Method and system for querying information of domain name
CN105847277A (en) Service account share management method and system used for third party application
CN106685902A (en) User authority management method, client and server
CN103606066A (en) Enterprise query platform and method
JP5678893B2 (en) Attribute information linkage providing system, access information management device, access information proxy management device, method, and program
CN108494870A (en) Dynamic data loading method based on CDN and device
US20090164568A1 (en) Method for integrating management of posted articles and terminal for the same

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant