CN104468804A - Web server and method and system for processing user conversations - Google Patents

Web server and method and system for processing user conversations Download PDF

Info

Publication number
CN104468804A
CN104468804A CN201410769592.3A CN201410769592A CN104468804A CN 104468804 A CN104468804 A CN 104468804A CN 201410769592 A CN201410769592 A CN 201410769592A CN 104468804 A CN104468804 A CN 104468804A
Authority
CN
China
Prior art keywords
redirected
request
application server
server
web server
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
CN201410769592.3A
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.)
Inspur General Software Co Ltd
Original Assignee
Inspur General Software 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 Inspur General Software Co Ltd filed Critical Inspur General Software Co Ltd
Priority to CN201410769592.3A priority Critical patent/CN104468804A/en
Publication of CN104468804A publication Critical patent/CN104468804A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers

Abstract

The invention provides a web server and a method and system for processing user conversations. The method includes the steps that the web server receives an original request transmitted by a client terminal; the web server judges whether the original request is repositioned or not according to a preset repositioning strategy, the original request is converted into a repositioning request if the original request is repositioned, the repositioning request is transmitted to an application server according to the repositioning strategy, and the application server is triggered to process the repositioning request according to conversation information; the conversation information is obtained by the web server and the application server in real time and saved to a database server. The invention provides the web server and the method and system for processing the user conversations, and the efficiency for processing the user conversations can be improved.

Description

The method and system of a kind of web server, process user conversation
Technical field
The present invention relates to communication technical field, particularly embodiments provide the method and system of a kind of web server, process user conversation.
Background technology
User conversation (session) is a unbroken request response sequence between user and server.To each request of user, server can identify request and come from same user.A session is just started when a unknown user sends first request to web application.When the clear and definite end session of user or server do not accept any request from user within a predefined time limit, session just finishes.
In prior art, the system of process user conversation adopts three layers of deployment architecture, is made up of client tier, web server layer and database layer three parts.In a user conversation, user is sent request to web server by client, and web server processes the request that client is sent, and obtains related data from database.
Visible by foregoing description, in three layers of deployment architecture of the prior art, all processing logics are all deposited on a web server, and cause the resource distribution of application program too to concentrate on a web server, treatment effeciency is lower.
Summary of the invention
The invention provides the method and system providing a kind of web server, process user conversation, the efficiency of process user conversation can be improved.
First aspect, the invention provides a kind of method processing user conversation, the method comprises:
Web server receives the raw requests that client is sent;
Described web server judges whether redirected described raw requests according to the redirected strategy pre-set, if, then described raw requests is converted to redirect request, and according to described redirected strategy, described redirect request is sent to application server, trigger described application server redirect request according to session information process;
Wherein, described session information is saved in database server by described web server and described application server Real-time Obtaining.
Further, described raw requests comprises: request type;
Described redirected strategy comprises: the corresponding relation of the request type that needs are redirected, request type and redirected address;
Described web server judges whether redirected described raw requests according to the redirected strategy pre-set, and comprising:
Described web server judges whether the request type in described raw requests is the request type needing to be redirected, and if so, then determines redirected described raw requests, otherwise, determine not to be redirected described raw requests;
Describedly according to described redirected strategy, described redirect request is sent to application server, comprising:
Determine described redirected address according to the request type in described raw requests and described request type with the corresponding relation of the address of being redirected, described redirect request is sent to application server by the described Redirect Address according to determining.
Further, described described raw requests is converted to redirect request, comprise: the mark of user conversation is added in described redirect request in the mode of cookie, trigger described application server and obtain corresponding session information according to the mark of described user conversation;
And/or,
Described described raw requests is converted to redirect request after, described according to described redirected strategy described redirect request sent to application server before, also comprise: in described redirect request, add SSL certificate information, trigger described application server redirect request according to described SSL certificate Information Authentication.
Further, described redirect request comprises: the mark of user conversation;
Before described application server redirect request according to session information process, also comprise: described application server obtains the session information of the mark correspondence of described user conversation from described database server according to the mark of the described user conversation in described redirect request.
Second aspect, the invention provides a kind of web server, comprising:
Receiving element, for receiving the raw requests that client is sent;
Judging unit, for judging whether redirected described raw requests according to the redirected strategy pre-set, when judged result is for being, notice converting unit;
Described converting unit, for described raw requests is converted to redirect request, and sends to application server according to described redirected strategy by described redirect request, triggers described application server redirect request according to session information process;
Wherein, described session information is saved in database server by described web server and described application server Real-time Obtaining.
Further, described raw requests comprises: request type;
Described redirected strategy comprises: the corresponding relation of the request type that needs are redirected, request type and redirected address;
Described judging unit, for judging whether the request type in described raw requests is the request type needing to be redirected, and when judged result is for being, then determining redirected described raw requests, when judged result is no, then determining not to be redirected described raw requests;
Described converting unit, for the corresponding relation according to the request type in described raw requests and described request type and redirected address, determine described redirected address, and according to the described Redirect Address determined, described redirect request is sent to application server.
Further, described converting unit, for the mark of user conversation being added in described redirect request in the mode of cookie, triggering described application server and obtaining corresponding session information according to the mark of described user conversation.
Further, described converting unit, also for adding SSL certificate information in described redirect request, triggers described application server redirect request according to described SSL certificate Information Authentication.
The third aspect, the invention provides a kind of system processing user conversation, comprising: client, database server, as arbitrary in second aspect as described in web server, application server;
Described client, for sending raw requests to described web server;
Described application server, for receiving the redirect request that described web server is sent, obtains session information from described database server, and according to described session information process redirect request;
Described database server, for preserving the described session information by described web server and described application server Real-time Obtaining.
Further, described web server and described application server, respectively according to the same session storage mode pre-set, be stored into the session information of Real-time Obtaining in described database server.
The invention provides the method and system of a kind of web server, process user conversation, by certain applications service redirection on application server, the request of client can be forwarded on application server by web server, application server can share session information with web server, the request that application server is sent according to the session information process web server of correspondence, alleviate the load of individual server, the efficiency of process user conversation can be improved.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 one embodiment of the invention provides a kind of flow chart processing the method for user conversation.
Fig. 2 one embodiment of the invention provides the flow chart of the method for another kind of process user conversation.
Fig. 3 one embodiment of the invention provides a kind of structural representation of web server.
Fig. 4 one embodiment of the invention provides a kind of structural representation processing the system of user conversation.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly; below in conjunction with the accompanying drawing in the embodiment of the present invention; technical scheme in the embodiment of the present invention is clearly and completely described; obviously; described embodiment is the present invention's part embodiment, instead of whole embodiments, based on the embodiment in the present invention; the every other embodiment that those of ordinary skill in the art obtain under the prerequisite not making creative work, all belongs to the scope of protection of the invention.
Embodiments provide a kind of method processing user conversation, see Fig. 1, the method comprises:
The raw requests that step 101:web server receives client is sent.
Step 102: described web server judges whether redirected described raw requests according to described redirected strategy, if so, then performs step 103, otherwise, perform step 104.
Step 103: described raw requests is converted to redirect request by described web server, and according to described redirected strategy, described redirect request is sent to application server, trigger described application server redirect request according to session information process.
Step 104: described web server is raw requests according to session information process.
Wherein, described session information is saved in database server by described web server and described application server Real-time Obtaining.
Above mentioned embodiment provide a kind of method processing user conversation, by certain applications service redirection on application server, the request of client can be forwarded on application server by web server, application server can share session information with web server, the request that application server is sent according to the session information process web server of correspondence, alleviate the load of individual server, the efficiency of process user conversation can be improved.
For how determining whether current raw requests can be processed by application server, can realize in the following manner: described raw requests comprises: request type.
Described redirected strategy comprises: the request type that needs are redirected.
Described web server judges whether redirected described raw requests according to the redirected strategy pre-set, and comprising:
Described web server judges whether the request type in described raw requests is the request type needing to be redirected, and if so, then determines redirected described raw requests, otherwise, determine not to be redirected described raw requests.
For example, can redirected strategy be configured in configuration file:
Described web server judges whether redirected described raw requests according to described redirected strategy, comprising:
Described server judges described request type whether in the configuration file pre-set, and if so, then determines redirected described raw requests, otherwise, determine not to be redirected described raw requests, wherein, be configured with in configuration file and be redirected strategy.
In addition, different application servers may be needed process for different request types, the address of being redirected that different application server is corresponding different, the address of being redirected can be determined by request type.For example, described redirected strategy comprises: the corresponding relation of request type and redirected address.
Describedly according to described redirected strategy, described redirect request is sent to application server, comprising:
Determine described redirected address according to the request type in described raw requests and described request type with the corresponding relation of the address of being redirected, described redirect request is sent to application server by the described Redirect Address according to determining.
Session information corresponding to active user's session in database server can be obtained to make application server, need the mark sending active user's session to application server, the mark of user conversation can be added in redirect request by the mode of cookie, can realize in the following manner: described described raw requests is converted to redirect request, comprise: the mark of user conversation is added in described redirect request in the mode of cookie, trigger described application server and obtain corresponding session information according to the mark of described user conversation.
In the transmitting procedure of redirect request, store information security issue, in order to the safety of guarantee information transmission, need to be encrypted redirect request, for example, described described raw requests is converted to redirect request after, described according to described redirected strategy described redirect request sent to application server before, also comprise: in described redirect request, add SSL(Secure Sockets Layer, SSL) certificate information, triggers described application server redirect request according to described SSL certificate Information Authentication.
Session information is stored in database server, and the corresponding mark of a user conversation of each session information, web server and application server can obtain session information corresponding in database server according to the mark of user conversation.Need corresponding session information when application server processes redirect request, can realize in the following manner: described redirect request comprises: the mark of user conversation.
Before described application server redirect request according to session information process, also comprise: described application server obtains the session information of the mark correspondence of described user conversation from described database server according to the mark of the described user conversation in described redirect request.
Fig. 2 shows the method embodiments providing another kind of process user conversation, and see Fig. 2, coordinated by client, web server, application server and database server four layers of deployment architecture, a flow process of common completing user Dialog processing comprises:
Step 201: client initiates user conversation, sends raw requests to web server.
Step 202: described web server receives the raw requests that described client is sent.
Step 203: described web server judges whether the request type in described raw requests is the request type needing to be redirected, and if so, then performs step step 204, otherwise, perform step step 212, step 213 successively, wherein, described raw requests comprises: request type.
Described raw requests is converted to redirect request by step 204:web server, and wherein, described redirect request comprises: the mark of user conversation.
Step 205:web server determines the address of being redirected according to the request type in described raw requests and the request type pre-set and the corresponding relation of the address of being redirected.
Step 206: described redirect request is sent to application server according to the described Redirect Address determined by described web server.
Step 207: described application server receives the described redirect request that described web server is sent.
Step 208: described application server obtains the session information of the mark correspondence of described user conversation from described database server according to the mark of the described user conversation in described redirect request.
Step 209: described application server is redirect request according to the described session information process obtained, and returns redirect request result to described web server.
Step 210: described web server receives described redirect request result.
Step 211: described web server generates the first raw requests result according to described redirect request result, sends to described client by described first raw requests result, terminates current process.
Step 212: described web server obtains the session information of the mark correspondence of described user conversation from described database server according to the mark of user conversation.
Step 213: described web server is raw requests according to the described session information process obtained, and returns the second raw requests result to described client.
See Fig. 3, embodiments provide a kind of web server, comprising:
Receiving element 301, for receiving the raw requests that client is sent.
Judging unit 302, for judging whether redirected described raw requests according to the redirected strategy pre-set, when judged result is for being, notice converting unit 303.
Described converting unit 303, for described raw requests is converted to redirect request, and sends to application server according to described redirected strategy by described redirect request, triggers described application server redirect request according to session information process.
Wherein, described session information is saved in database server by described web server and described application server Real-time Obtaining.
In a kind of possible implementation, described raw requests comprises: request type;
Described redirected strategy comprises: the corresponding relation of the request type that needs are redirected, request type and redirected address.
Described judging unit 302, for judging whether the request type in described raw requests is the request type needing to be redirected, and when judged result is for being, then determines redirected described raw requests, when judged result is no, then determine not to be redirected described raw requests.
Described converting unit 303, for the corresponding relation according to the request type in described raw requests and described request type and redirected address, determine described redirected address, and according to the described Redirect Address determined, described redirect request is sent to application server.
In a kind of possible implementation, described converting unit 303, for the mark of user conversation being added in described redirect request in the mode of cookie, triggering described application server and obtaining corresponding session information according to the mark of described user conversation.
In a kind of possible implementation, described converting unit 303, also for adding SSL certificate information in described redirect request, triggers described application server redirect request according to described SSL certificate Information Authentication.
See Fig. 4, embodiments provide a kind of system processing user conversation, comprising: arbitrary described web server 402, application server 403, database server 404 in client 401, above-described embodiment.
Described client 401, for sending raw requests to described web server 402.
Described application server 403, for receiving the redirect request that described web server 402 is sent, obtains session information from described database server 404, and according to described session information process redirect request.
Described database server 404, for preserving the described session information by described web server and described application server Real-time Obtaining.
In order to be that web server and application server can session informations in shared data bank server, described web server and described application server, respectively according to the same session storage mode pre-set, the session information of Real-time Obtaining is stored in described database server.Optionally, session storage mode is session storage mode.
In a kind of possible implementation, described system is preconfigured to four layers of deployment architecture, described system comprises client tier, web server layer, application-server layer, database server layer, wherein, described client tier comprises at least one client, web server layer comprises at least one web server, application-server layer comprises at least one application server, database server layer comprises at least one database server.Wherein, client is apply foremost, can be browser; Web server is the server deploying web page associated documents, application deployment can supply client-access; Application server is the server deploying application, and application can be WCF(Windows Communication Foundation, Windows communication interface) service; Database server is store the data of application and the server of session information.
In the various embodiments described above, in order to the various information making web server and application server obtain active user's session, described session information comprises: the unique identification of the lock of the data stored in time of the mark of user conversation, the title of the application program at active user's session place, the creation-time of user conversation, user conversation expired time, user conversation time-out, active user's session, time that user conversation is locked, user conversation.In addition, can also comprise in session information: the log-on message of active user, the authority information of active user.By the log-on message of active user, web server and application server can determine whether active user logs in, by the authority information of active user, web server and application server can determine whether active user has permission the data obtaining and ask in raw requests.
In addition, can comprise in raw requests: the path of request, ask subsidiary data.
In a system, with different physical machines as web server and application server, the storage mode of the session information of web server and application server is self-defining session storage mode, and wherein, the database table of session storage mode comprises the following:
The unique identification of a SessionID row storage user conversation;
ApplciationName row store the title of the application program at active user's session place;
Created row store the time that user conversation creates;
Expires row store the user conversation expired time;
User conversation time-out time is shown in Timeout list;
The data stored in active user's session are shown in SessionItems list;
The time that user conversation is locked is shown in LockDate list;
Unique sign of the lock of user conversation is shown in LockID list.
Under IIS environment, based on the database table of above-mentioned session storage mode, the user conversation entity class that design is corresponding with it and with the corresponding management class realizing user conversation, user conversation entity class and corresponding management class are all inherited to System.Web.SessionState. SessionStateStoreProviderBase class, and the correlation technique rewritten about session access, the method that can be accessed by the codes implement session of following self-defined session accessing operation class:
// realize based on the Session State Store of database
public class DBSessionProvider: SessionStateStoreProviderBase
{
// Apply Names
private string applicationName = string.Empty;
// expired time, puts into configuration file
private int timeoutDefault = 30;
#region method
public override SessionStateStoreData CreateNewStoreData(HttpContext context, int timeout)
{
timeoutDefault = timeout;
return new SessionStateStoreData(new SessionStateItemCollection(), SessionStateUtility.GetSessionStaticObjects(context), timeout);
}
public override void CreateUninitializedItem(HttpContext context, string id, int timeout)
{……}
……
}
Dispose a web application webdemo on a web server, the access path of this application is http://localhost/webdemo, adds the configuration section about database server information in the system.web configuration section of the configuration file of this application:
<sessionState cookieless="false" regenerateExpiredSessionId="true" mode="Custom" customProvider="DatabaseProvider" timeout="30">
<providers>
<add name="DatabaseProvider" type="Demo.DBSessionProvider,Demo " />
</providers>
</sessionState>
Dispose a web application appdemo on the application server, the access path of this application is http: // 192.168.1.100/appdemo, the content that in the configuration file of this application, configuration is identical with above-mentioned web server.
In order to information security, this appdemo application can be set to certificate of necessity checking, following configuration section is set in the configuration file of this application:
<appSettings>
--wcf address of service, configuration SSL certificate checking-->
<add key="AppDomain" value="https://192.168.1.100/appdemo" />
--SSL certificate CN title-->
<add key="AppSSLCNName" value="appdemo" />
</appSettings>
In order to raw requests being given to corresponding application server, need the HttpHandler write for redirect request, this HttpHandler can judge whether raw requests to be transmitted to application server, and raw requests can be converted to redirect request, this HttpHandler can pass through following codes implement:
/// <summary>
///realize interface, Url rewrites
/// </summary>
public void ProcessRequest(HttpContext context)
{
HttpRequest request = context.Request;
Stream stream=context.Request.InputStream; // obtain and currently import Http inlet flow into
long length = stream.Length;
Byte [] data=context.Request.BinaryRead ((int) length); // to current input stream carry out designated word joint number binary system read
String strContent=Encoding.UTF8.GetString (data); // be decoded as the character string of UTF8 coding form
string appDomain = GSPGlobalParameter.GetItem(GSPGlobalParameterRegister.AppDomain);
string applicationName = request.ApplicationPath;
string appServerName = request.RawUrl;
string url = string.Empty;
if (applicationName != "" && applicationName != "/")
{
url = string.Format("{0}{1}", appDomain, appServerName.ToLower().Replace(applicationName.ToLower(), ""));
}
else
{
url = string.Format("{0}{1}", appDomain, appServerName.ToLower());
}
HttpWebRequest webRequest = (HttpWebRequest)HttpWebRequest.Create(url);
webRequest.Method = "Post";
webRequest.ContentType = "application/json";
if (cert != null)
{
webRequest.ClientCertificates.Add(cert);
}
Cookie c = new Cookie("ASP.NET_SessionId", context.Session.SessionID);
string sslName = GSPGlobalParameter.GetItem(GSPGlobalParameterRegister.SSLCNName);
c.Domain = sslName;
webRequest.CookieContainer = new CookieContainer();
webRequest.CookieContainer.Add(c);
StreamWriter requestWriter = new StreamWriter(webRequest.GetRequestStream());
if (!string.IsNullOrEmpty(strContent))
{
requestWriter.WriteAsync(strContent);
}
requestWriter.Close();
requestWriter = null;
WebResponse webResponse;
try
{
webResponse = webRequest.GetResponse();
}
catch (WebException ex)
{
webResponse = (HttpWebResponse)ex.Response;
}
webRequest = null;
Stream myStream = webResponse.GetResponseStream();
StreamReader sr = new StreamReader(myStream, Encoding.UTF8);
string responseContext = string.Empty;
if (sr != null)
{
context.Response.ContentType = "application/json";
string ss = sr.ReadToEnd();
if (!String.IsNullOrEmpty(ss))
{
try
{
JObject joResponse = JObject.Parse(ss);
responseContext = joResponse.ToString();
}
catch
{
responseContext = ss;
}
}
}
context.Response.Write(responseContext);
sr.Close();
}
Application server can be transmitted in order to forwarding rule is set to the raw requests that request type is " * .svc ", need to add following configuration section in " system.webServer " configuration section for the configuration file of described webdemo:
<handlers>
<add name="UrlRewrite" verb="*" path="*.svc" type="demo.UrlRewriteHandler,demo" />
</handlers>
After realizing above-mentioned setting, just can by the URL(Uniform Resource Locator of web server, URL(uniform resource locator)) visit Service Source on application server.
Visible by foregoing description, a kind of method and system processing user conversation that the embodiment of the present invention provides, have following beneficial effect:
1, the method and system of a kind of web server, process user conversation are embodiments provided, by certain applications service redirection on application server, the request of client can be forwarded on application server by web server, application server can share session information with web server, the request that application server is sent according to the session information process web server of correspondence, alleviate the load of individual server, the efficiency of process user conversation can be improved;
2, the method and system of a kind of web server, process user conversation are embodiments provided, web server and application server can use oneself independent buffer memory, can be deployed on different hardware devices, hardware resource more can be used when processing user conversation, can improve the efficiency of server individuality, the hardware resource ratio of reasonable arrangement web server and application server can bring the lifting that efficiency is larger.
The content such as information interaction, implementation between each unit in the said equipment, due to the inventive method embodiment based on same design, particular content can see in the inventive method embodiment describe, repeat no more herein.
It should be noted that, in this article, the relational terms of such as first and second and so on is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element " being comprised " limited by statement, and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical factor.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that program command is relevant, aforesaid program can be stored in the storage medium of embodied on computer readable, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium in.
Finally it should be noted that: the foregoing is only preferred embodiment of the present invention, only for illustration of technical scheme of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.

Claims (10)

1. process a method for user conversation, it is characterized in that, the method comprises:
Web server receives the raw requests that client is sent;
Described web server judges whether redirected described raw requests according to the redirected strategy pre-set, if, then described raw requests is converted to redirect request, and according to described redirected strategy, described redirect request is sent to application server, trigger described application server redirect request according to session information process;
Wherein, described session information is saved in database server by described web server and described application server Real-time Obtaining.
2. method according to claim 1, is characterized in that, described raw requests comprises: request type;
Described redirected strategy comprises: the corresponding relation of the request type that needs are redirected, request type and redirected address;
Described web server judges whether redirected described raw requests according to the redirected strategy pre-set, and comprising:
Described web server judges whether the request type in described raw requests is the request type needing to be redirected, and if so, then determines redirected described raw requests, otherwise, determine not to be redirected described raw requests;
Describedly according to described redirected strategy, described redirect request is sent to application server, comprising:
Determine described redirected address according to the request type in described raw requests and described request type with the corresponding relation of the address of being redirected, described redirect request is sent to application server by the described Redirect Address according to determining.
3. method according to claim 1 and 2, is characterized in that,
Described described raw requests is converted to redirect request, comprises: the mark of user conversation is added in described redirect request in the mode of cookie, trigger described application server and obtain corresponding session information according to the mark of described user conversation;
And/or,
Described described raw requests is converted to redirect request after, described according to described redirected strategy described redirect request sent to application server before, also comprise: in described redirect request, add SSL SSL certificate information, trigger described application server redirect request according to described SSL certificate Information Authentication.
4. method according to claim 1, is characterized in that, described redirect request comprises: the mark of user conversation;
Before described application server redirect request according to session information process, also comprise: described application server obtains the session information of the mark correspondence of described user conversation from described database server according to the mark of the described user conversation in described redirect request.
5. a web server, is characterized in that, comprising:
Receiving element, for receiving the raw requests that client is sent;
Judging unit, for judging whether redirected described raw requests according to the redirected strategy pre-set, when judged result is for being, notice converting unit;
Described converting unit, for described raw requests is converted to redirect request, and sends to application server according to described redirected strategy by described redirect request, triggers described application server redirect request according to session information process;
Wherein, described session information is saved in database server by described web server and described application server Real-time Obtaining.
6. web server according to claim 5, is characterized in that, described raw requests comprises: request type;
Described redirected strategy comprises: the corresponding relation of the request type that needs are redirected, request type and redirected address;
Described judging unit, for judging whether the request type in described raw requests is the request type needing to be redirected, and when judged result is for being, then determining redirected described raw requests, when judged result is no, then determining not to be redirected described raw requests;
Described converting unit, for the corresponding relation according to the request type in described raw requests and described request type and redirected address, determine described redirected address, and according to the described Redirect Address determined, described redirect request is sent to application server.
7. web server according to claim 5, it is characterized in that, described converting unit, for the mark of user conversation being added in described redirect request in the mode of cookie, triggering described application server and obtaining corresponding session information according to the mark of described user conversation.
8. according to the arbitrary described web server of claim 5-7, it is characterized in that, described converting unit, also for adding SSL SSL certificate information in described redirect request, triggers described application server redirect request according to described SSL certificate Information Authentication.
9. process a system for user conversation, it is characterized in that, comprising: client, database server, as web server, the application server as described in arbitrary in claim 5 to 8;
Described client, for sending raw requests to described web server;
Described application server, for receiving the redirect request that described web server is sent, obtains session information from described database server, and according to described session information process redirect request;
Described database server, for preserving the described session information by described web server and described application server Real-time Obtaining.
10. system according to claim 9, is characterized in that,
Described web server and described application server, respectively according to the same session storage mode pre-set, be stored into the session information of Real-time Obtaining in described database server.
CN201410769592.3A 2014-12-15 2014-12-15 Web server and method and system for processing user conversations Pending CN104468804A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410769592.3A CN104468804A (en) 2014-12-15 2014-12-15 Web server and method and system for processing user conversations

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410769592.3A CN104468804A (en) 2014-12-15 2014-12-15 Web server and method and system for processing user conversations

Publications (1)

Publication Number Publication Date
CN104468804A true CN104468804A (en) 2015-03-25

Family

ID=52914156

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410769592.3A Pending CN104468804A (en) 2014-12-15 2014-12-15 Web server and method and system for processing user conversations

Country Status (1)

Country Link
CN (1) CN104468804A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104866312A (en) * 2015-05-22 2015-08-26 国云科技股份有限公司 ASP.NET-based pseudo static page implementation method
CN107196986A (en) * 2016-03-15 2017-09-22 中国移动通信集团江苏有限公司 A kind of reorientation method and device
WO2017162041A1 (en) * 2016-03-22 2017-09-28 阿里巴巴集团控股有限公司 Method and device for page display

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1901490A (en) * 2005-07-19 2007-01-24 国际商业机器公司 Method, apparatus, and program product for providing web service
CN101662464A (en) * 2008-08-26 2010-03-03 阿里巴巴集团控股有限公司 System for realizing HTTP request service and method thereof
CN101860549A (en) * 2010-06-25 2010-10-13 山东中创软件商用中间件股份有限公司 Access session data processing method under Web Service and device
US20120072531A1 (en) * 2010-09-22 2012-03-22 Canon Kabushiki Kaisha Information processing apparatus and control method therefor
CN103685304A (en) * 2013-12-25 2014-03-26 Tcl集团股份有限公司 Method and system for sharing session information

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1901490A (en) * 2005-07-19 2007-01-24 国际商业机器公司 Method, apparatus, and program product for providing web service
CN101662464A (en) * 2008-08-26 2010-03-03 阿里巴巴集团控股有限公司 System for realizing HTTP request service and method thereof
CN101860549A (en) * 2010-06-25 2010-10-13 山东中创软件商用中间件股份有限公司 Access session data processing method under Web Service and device
US20120072531A1 (en) * 2010-09-22 2012-03-22 Canon Kabushiki Kaisha Information processing apparatus and control method therefor
CN103685304A (en) * 2013-12-25 2014-03-26 Tcl集团股份有限公司 Method and system for sharing session information

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104866312A (en) * 2015-05-22 2015-08-26 国云科技股份有限公司 ASP.NET-based pseudo static page implementation method
CN107196986A (en) * 2016-03-15 2017-09-22 中国移动通信集团江苏有限公司 A kind of reorientation method and device
CN107196986B (en) * 2016-03-15 2021-04-27 中国移动通信集团江苏有限公司 Redirection method and device
WO2017162041A1 (en) * 2016-03-22 2017-09-28 阿里巴巴集团控股有限公司 Method and device for page display
US10846355B2 (en) 2016-03-22 2020-11-24 Alibaba Group Holding Limited Method and device for page display

Similar Documents

Publication Publication Date Title
CN109543463B (en) Data security access method, device, computer equipment and storage medium
US9444787B2 (en) Non-intrusive method and apparatus for automatically dispatching security rules in cloud environment
CN101771532B (en) Method, device and system for realizing resource sharing
CN111291060B (en) Method, device and computer readable medium for managing blockchain nodes
CN111010372A (en) Block chain network identity authentication system, data processing method and gateway equipment
CN106452814B (en) A kind of method and apparatus using external account operating resource
CN101626369B (en) Method, device and system for single sign-on
EP1931114B1 (en) Method and apparatus for detecting the IP address of a computer and location information associated therewith
CN102790807A (en) Domain name resolution agent method and system, and domain name resolution agent server
CN102638454A (en) Plug-in type SSO (single signon) integration method oriented to HTTP (hypertext transfer protocol) identity authentication protocol
CN106302453A (en) The processing method of data, Apparatus and system
CN103179099B (en) A kind ofly access the uniform authentication method of open website platform and a kind of website platform
CN107992771B (en) A kind of data desensitization method and device
US10341286B2 (en) Methods and systems for updating domain name service (DNS) resource records
CN110933092A (en) JWT (just-in-one wt) based single sign-on realization method and device
CN109067785A (en) Cluster authentication method, device
CN103905399A (en) Account registration management method and apparatus
CN111818088A (en) Authorization mode management method and device, computer equipment and readable storage medium
US11356485B2 (en) Pre-signed URLs with custom policies for data access in an object storage system
CN105530311A (en) Load distribution method and device
CN105162774A (en) Virtual machine login method and device used for terminal
CN104468804A (en) Web server and method and system for processing user conversations
CN113129008B (en) Data processing method, device, computer readable medium and electronic equipment
CN112787986A (en) Multi-path bidirectional authentication method and device
CN112073366A (en) Data processing method for railway financial system and data center

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150325