CN111385358A - Synchronization method and device of session control object and server - Google Patents

Synchronization method and device of session control object and server Download PDF

Info

Publication number
CN111385358A
CN111385358A CN202010143238.5A CN202010143238A CN111385358A CN 111385358 A CN111385358 A CN 111385358A CN 202010143238 A CN202010143238 A CN 202010143238A CN 111385358 A CN111385358 A CN 111385358A
Authority
CN
China
Prior art keywords
session control
current user
application
application cluster
service
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.)
Granted
Application number
CN202010143238.5A
Other languages
Chinese (zh)
Other versions
CN111385358B (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.)
Guangzhou Tongxiang Digital Technology Co.,Ltd.
Original Assignee
Hainan Jinpan Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hainan Jinpan Intelligent Technology Co ltd filed Critical Hainan Jinpan Intelligent Technology Co ltd
Priority to CN202010143238.5A priority Critical patent/CN111385358B/en
Publication of CN111385358A publication Critical patent/CN111385358A/en
Application granted granted Critical
Publication of CN111385358B publication Critical patent/CN111385358B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/14Session management
    • 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/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Abstract

The application provides a synchronization method, a synchronization device and a server of a session control object, which are applied to a first network application, wherein the first network application refers to any one network application in an application cluster, and the synchronization method comprises the following steps: receiving an application access request sent by a client; judging whether the application cluster stores a session control object of the current user or not; and if the session control object of the current user is not stored, the session control object of the current user is created and stored through the session control service of the application cluster. In the scheme, the session control object of the user is stored in the application cluster, so that the application cluster can extract the storage behavior data of the session control object by only realizing one session control mechanism, thereby reducing the system resources consumed by the application cluster.

Description

Synchronization method and device of session control object and server
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a synchronization method, an apparatus, and a server for session control objects.
Background
The application cluster is composed of a plurality of network applications, and each network application provides a corresponding interface for a user to access. When a user switches from an interface of one network application to an interface of another network application, a new network application often requires behavior data of the user when accessing the original network application. For example, when the commodity selection interface is switched to the payment interface, the payment service requires commodity information of a commodity selected by the user, and the commodity information of the commodity selected by the user is behavior data generated when the commodity selection service is accessed.
The existing solution is to create a corresponding session control object for a user in a network server for storing the behavior data of the user. When a user accesses a new network application, the application cluster acquires a session control object of the user from the network server and extracts behavior data.
The problem in the prior art is that an application cluster may connect to multiple network servers, session control mechanisms of different network servers are generally different, and correspondingly, the application cluster needs to implement multiple session control mechanisms to extract behavior data from session control objects of each network server, resulting in more system resources consumed by the application cluster.
Disclosure of Invention
Based on the above shortcomings of the prior art, the present application provides a synchronization method, apparatus and server for session control objects, so as to reduce system resources consumed by an application cluster.
A first aspect of the present application provides a synchronization method for a session control object, which is applied to a first network application, where the first network application refers to any one network application in an application cluster, and the synchronization method includes:
receiving an application access request sent by a client;
judging whether the application cluster stores a session control object of the current user or not; wherein the current user refers to a user currently using the client;
if the application cluster stores the session control object of the current user, reading user behavior data recorded in the session control object of the current user;
and if the session control object of the current user is not stored in the application cluster, creating and storing the session control object of the current user through the session control service of the application cluster.
Optionally, the determining whether the session control object of the current user is stored in the application cluster includes:
judging whether the application cluster opens session control service;
if the application cluster does not start session control service, determining that a session control object of the current user is not stored in the application cluster;
if the application cluster opens the session control service, searching the object storage record of the current user in the session control service;
if the object storage record of the current user is found out, determining that the application cluster stores the session control object of the current user;
and if the object storage record of the current user is not found, determining that the application cluster does not store the session control object of the current user.
Optionally, before creating and storing the session control object of the current user by using the session control service of the application cluster if the application cluster does not store the session control object of the current user, the method further includes:
and if the application cluster does not start the session control service, the first network application starts the session control service.
Optionally, the determining whether the application cluster opens the session control service includes:
judging whether a configuration port of the application cluster is opened or not; wherein the configuration port is a pre-designated communication port used by the session control service;
if the configuration port is not opened, determining that the application cluster does not open the session control service;
if the configuration port is opened, verifying whether the service occupying the configuration port is the session control service;
if the service occupying the configuration port is the session control service, determining that the application cluster opens the session control service;
and if the service occupying the configuration port is not the session control service, determining that the session control service is not opened by the application cluster.
Optionally, the application access request carries a user identifier of a current user;
wherein, the reading of the user behavior data recorded in the session control object of the current user includes:
searching a storage address of the session control object of the current user from a plurality of session control objects stored in the application cluster by using the user identifier of the current user;
and reading the user behavior data recorded in the session control object of the current user from the storage address of the session control object of the current user.
A second aspect of the present invention provides a synchronization apparatus for a session control object, which is applied to a first network application, where the first network application refers to any one network application in an application cluster, and the synchronization apparatus includes:
the receiving unit is used for receiving an application access request sent by a client;
the judging unit is used for judging whether the application cluster stores a session control object of the current user or not; wherein the current user refers to a user currently using the client;
a reading unit, configured to read user behavior data recorded in the session control object of the current user if the application cluster stores the session control object of the current user;
and the creating unit is used for creating and storing the session control object of the current user through the session control service of the application cluster if the session control object of the current user is not stored in the application cluster.
Optionally, the determining unit is specifically configured to determine whether the session control object of the current user is stored in the application cluster
Judging whether the application cluster opens session control service;
if the application cluster does not start session control service, determining that a session control object of the current user is not stored in the application cluster;
if the application cluster opens the session control service, searching the object storage record of the current user in the session control service;
if the object storage record of the current user is found out, determining that the application cluster stores the session control object of the current user;
and if the object storage record of the current user is not found, determining that the application cluster does not store the session control object of the current user.
Optionally, the method further includes:
and the service starting unit is used for starting the session control service and storing the session control object of the current user acquired from the client through the session control service if the application cluster does not start the session control service.
Optionally, when the determining unit determines whether the application cluster opens the session control service, the determining unit is specifically configured to:
judging whether a configuration port of the application cluster is opened or not; wherein the configuration port is a pre-designated communication port used by the session control service;
if the configuration port is not opened, determining that the application cluster does not open the session control service;
if the configuration port is opened, verifying whether the service occupying the configuration port is the session control service;
if the service occupying the configuration port is the session control service, determining that the application cluster opens the session control service;
and if the service occupying the configuration port is not the session control service, determining that the session control service is not opened by the application cluster.
A third aspect of the present invention provides a server, where the server is any network application in an application cluster, and the server includes:
a memory for storing a program;
a processor, configured to execute the program, where the program, when executed, is specifically configured to implement the synchronization method for session control objects provided by any one of the first aspects of the present invention.
The application provides a synchronization method, a synchronization device and a server of a session control object, which are applied to a first network application, wherein the first network application refers to any one network application in an application cluster, and the synchronization method comprises the following steps: receiving an application access request sent by a client; judging whether the application cluster stores a session control object of the current user or not; and if the session control object of the current user is not stored, the session control object of the current user is created and stored through the session control service of the application cluster. In the scheme, the session control object of the user is stored in the application cluster, so that the application cluster can extract the storage behavior data of the session control object by only realizing one session control mechanism, thereby reducing the system resources consumed by the application cluster.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a synchronization method for session control objects according to an embodiment of the present application;
fig. 2 is a method for determining whether a session control service is opened according to an embodiment of the present disclosure;
fig. 3 is a synchronization apparatus for session control objects according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
First, to facilitate an understanding of the methods provided herein, some terms referred to herein are described below.
The session control object is a custom data structure in the computer, and can also be a session object. In the method provided by the application, the application cluster creates a session control object for each session of each user, the session control object is used for storing some behavior data generated when the user uses each network application during the session, and the session control object is deleted after the session is finished.
The electronic office system of the enterprise is equivalent to an application cluster, after the employee opens and logs in the electronic office system, the electronic office system establishes a conversation of the employee, the conversation lasts until the employee quits the electronic office system, and during the period, when the employee operates each network application provided by the electronic office system, a part of behavior data is stored in a conversation control object corresponding to the conversation.
The behavior data stored by the session control object is mainly used for maintaining the user state when the user switches between different network applications. Still taking the electronic office system as an example, after the employee inputs an account and a password to log in, the authentication application may confirm that the current login state of the account is logged in, and record the current login state as a piece of behavior data in the session control object, and when the employee starts to access other network applications of the electronic office system, the other network applications may determine that the account is logged in by searching for the corresponding session control object.
On the other hand, when the user accesses each network application, some preference settings, such as the font, font size, etc. of the setting interface, may be performed, and in order to ensure that these preference settings of the user are effective for all network applications during one session, these preference settings may be recorded as behavior data in the corresponding session control object, and when the user switches between each network application, the network application may obtain these preference settings from the session control object and perform adaptive adjustment.
An embodiment of the present application provides a method for synchronizing session control objects, please refer to fig. 1, where the method includes the following steps:
first, it should be noted that the method provided in this embodiment is applicable to any network application in an application cluster, and an execution process of the method provided in this embodiment is described below by taking a certain network application in the application cluster as an example, and for convenience of description, a network application that executes the following method is referred to as a first network application.
S101, receiving an application access request sent by a client.
And the application access request is generated by the client according to the operation of the user and is sent to the network application requesting access. For example, the online shopping platform may be regarded as an application cluster, which includes two network applications of payment and commodity selection, and after the user selects a commodity in the application of commodity selection and clicks confirmation, the client generates an application access request for accessing the payment application and sends the application access request to the payment application, thereby implementing the payment service.
Therefore, the application access request in step S101 is an application access request that is generated by the client according to the operation of the current user and requests to access the first network application.
It will be appreciated that in order to indicate to the accessing application the identity of the accessing user, the application access request will also carry the user identity of the current user.
The current user refers to a user currently using the client.
S102, judging whether the application cluster stores the session control object of the current user.
The specific execution process of step S102 includes:
judging whether the application cluster starts session control service or not;
if the application cluster does not start the session control service, determining that the session control object of the current user is not stored in the application cluster;
if the application cluster opens the session control service, searching an object storage record of the current user in the session control service;
if the object storage record of the current user is found out, determining that the application cluster stores the session control object of the current user;
and if the object storage record of the current user is not found, determining that the application cluster does not store the session control object of the current user.
A session control service, which may also be referred to as sessionserver, is a virtual service for managing individual session control objects in an application cluster. In this embodiment, the application cluster needs to store and read the session control object through the session control service.
Specifically, each time a new session control object is created by the application cluster, the session control object is stored in a server group (which may be referred to as an application server group) for running the application cluster, and meanwhile, a corresponding object storage record is added in the session control service, where the object storage record is used to indicate to which user the newly created session control object corresponds, and a storage address of the session control object in the application server group. Correspondingly, when any network application in the application cluster needs to read and write the session control object in the current application cluster, the session control object needs to be searched through the session control service.
It should be noted that the session control service is started by any network application of the application cluster only after the application cluster is started, and the session control service is also closed after the application cluster is closed each time, all session control objects during the running period are also emptied, and the session control service is restarted by the network application which needs to create and store the session control object after the application cluster is restarted.
With reference to the above description, it can be understood that if the application cluster does not currently open the session control service, it is obvious that the application cluster does not currently store any session control object, and therefore, after it is determined that the application cluster does not open the session control service, it may be directly determined that the session control object of the current user is not stored in the application cluster.
After the session control service is judged to have been opened by the application cluster, it is possible that the first network application is the first network application accessed after the current session is established between the current user and the application cluster, as described above, the session control object is used for recording behavior data during the session between the user and the application cluster, in the above case, the user has not generated behavior data, and there is no session control object correspondingly, so it is necessary to further search for whether there is an object storage record of the session control object corresponding to the current user in the session control service, if there is an object storage record, it is indicated that the session control object of the user already exists, otherwise, if there is no object storage record, it is indicated that there is no session control object of the current user in the application cluster.
If the session control object of the current user is not stored in the application cluster, step S103 is executed.
If the session control object of the current user is stored in the application cluster, step S104 is executed.
And S103, creating and storing a session control object of the current user.
Specifically, if the application cluster already opens the session control service, the session control object of the current user is created, and then the session control object is directly stored by using the session control service.
If the application cluster does not start the session control service at this time, the session control service needs to be started by using the preset configuration information of the session control service, then the session control object of the current user is created, and the session control object of the current user is stored by using the session control service.
Configuration information of an optional session control service is as follows:
< SessionCache > < desc ═ distributed cache ", IP ═ 127.0.0.1", port ═ 7777", ipdesc ═ … … >
Wherein < SessionCache > and </SessionCache > are configuration information tags for describing that the information is configuration information of the session control service, desc is for describing a manner of storing a session control object in the application cluster, the storage manner in the above example is distributed storage, the IP is a virtual IP address allocated to the session control service after the session control service is started, the port is a port number allocated to a communication port used by the session control service, and after the session control service is started, the network application can access the session control service through the IP of 127.0.0.1 and the port of 7777, and further search an object storage record therein. The Ipdesc includes an IP address assigned to the application server for storing the session control object, and there may be a plurality of IP addresses or one IP address, which is not limited herein.
And S104, reading behavior data in the session control object of the current user through the session control service.
The read behavior data is used to control the response of the first network application to the current user during the current user's access to the first network application.
The specific execution process of step S104 includes:
searching a storage address of a session control object of a current user from a plurality of session control objects stored in an application cluster by using the user of the current user;
and reading the user behavior data recorded in the session control object of the current user from the storage address of the session control object of the current user.
Optionally, this embodiment further includes:
and S105, recording behavior data when the current user accesses the first network application, and updating the behavior data to a session control object of the current user.
After step S103 and step S104 are executed, step S105 may be executed.
The embodiment provides a synchronization method for a session control object, which is applied to a first network application, where the first network application refers to any one network application in an application cluster, and the synchronization method includes: receiving an application access request sent by a client; judging whether the application cluster stores a session control object of the current user or not; and if the application cluster stores the session control object of the current user, reading user behavior data recorded in the session control object of the current user, and if the session control object of the current user is not stored in the application cluster, creating and storing the session control object of the current user through a session control service. In the scheme, the session control object of the user is stored in the application cluster, so that the application cluster can extract the storage behavior data of the session control object by only realizing one session control mechanism, thereby reducing the system resources consumed by the application cluster.
Referring to fig. 2, a method for determining whether an application cluster opens a session control service is described below, where the method includes:
s201, judging whether a preset configuration port is opened or not.
The configuration port is a port that is designated in advance and used for establishing a communication connection with the session control service, and the port numbered "7777" is the configuration port, taking the configuration information in the foregoing embodiment as an example.
If the configuration port is not opened, step S202 is executed, and if the configuration port is opened, step S203 is executed.
S202, determining that the application cluster does not open the session control service.
S203, verifying whether the service occupying the configuration port is a session control service.
If the service occupying the configuration port is the session control service, step S204 is executed, and if the service occupying the configuration port is not the session control service, step S202 is executed.
Specifically, after the configuration port is determined to be opened, a verification instruction may be sent to the configuration port, response information fed back from the configuration port is received, and whether the service currently occupying the configuration port is a session control service is determined according to the response information.
And S204, determining that the application cluster opens the session control service.
Finally, the implementation process of the synchronization method for the session control object provided by the present application is described with reference to a specific application scenario.
Still take an electronic office system as an example. The electronic office system can comprise a plurality of network applications such as login, to-do business prompt, internal communication, online attendance checking and the like, a user accesses the login application firstly after opening the electronic office system, the login application verifies the account number and the password of the user, the login state of the user is set to be logged in after the verification is passed, after the user accesses the login application, the login application will first find out whether there is a session control object of the user in the application cluster, i.e. the whole electronic office system, assuming that the session control service is opened at this time, since the user has just established a session with the electronic office system, the login application finds out that there is no session control object for the user through the session control service, whereupon the login application creates the session control object for the user and stores it through the session control service, and after the identity verification of the user passes, recording the login state of the user as logged-in a session control object of the user.
After logging in, the user jumps to the to-be-handled service prompting application, the to-be-handled service prompting application searches a session control object created by the login application through the session control service, the user is determined to log in by reading the login state recorded in the session control object, then the to-be-handled service of the user is pushed to the client of the user, at this time, the user can set attribute values of attributes such as fonts, font sizes and application backgrounds, for example, the font size is set to be 4, and after the user finishes setting, the to-be-handled service prompting application updates the settings to the session control object of the user through the session control service.
When the user jumps from the to-do service reminder application to another application, such as an intercom application, the intercom application may determine that the user has logged in by searching and reading the session control object of the user, and adjust the font, font size, and application backlight attribute of the user to the attribute value set by the user when accessing the to-do service reminder application, for example, setting the default number 5 word as the number 4 word recorded in the session control object.
With reference to fig. 3, the apparatus may be regarded as a first network application in an application cluster, where in this embodiment, the first network application refers to any one network application in the application cluster, and the apparatus provided in this embodiment includes:
a receiving unit 301, configured to receive an application access request sent by a client.
A determining unit 302, configured to determine whether the application cluster stores a session control object of the current user.
Wherein the current user refers to a user currently using the client.
The reading unit 303 is configured to, if the application cluster stores the session control object of the current user, read user behavior data recorded in the session control object of the current user.
The creating unit 304 is configured to create and store the session control object of the current user through the session control service of the application cluster if the application cluster does not store the session control object of the current user.
When the reading unit 303 reads the behavior data of the current user from the session control object, the reading unit is specifically configured to:
searching a storage address of a session control object of a current user from a plurality of session control objects stored in an application cluster by using the user of the current user;
and reading the user behavior data recorded in the session control object of the current user from the storage address of the session control object of the current user.
When the determining unit 302 determines whether the session control object of the current user is stored in the application cluster, it is specifically configured to:
judging whether the application cluster starts session control service or not;
if the application cluster does not start the session control service, determining that the session control object of the current user is not stored in the application cluster;
if the application cluster opens the session control service, searching the object storage record of the current user in the session control service;
if the object storage record of the current user is found out, determining that the application cluster stores the session control object of the current user;
and if the object storage record of the current user is not found, determining that the application cluster does not store the session control object of the current user.
Optionally, the apparatus provided in this embodiment further includes:
the service opening unit 305 is configured to open the session control service if the application cluster does not open the session control service, and store the session control object of the current user, which is acquired from the client, through the session control service.
When the determining unit 302 determines whether the application cluster opens the session control service, it is specifically configured to:
judging whether a configuration port of the application cluster is opened or not; wherein the configuration port is a pre-designated communication port used by the session control service;
if the configuration port is not opened, determining that the application cluster does not open the session control service;
if the configuration port is opened, verifying whether the service occupying the configuration port is a session control service;
if the service occupying the configuration port is the session control service, determining that the application cluster opens the session control service;
and if the service occupying the configuration port is not the session control service, determining that the application cluster does not open the session control service.
Optionally, the synchronization apparatus further includes:
an updating unit 306, configured to update the behavior data of the current user when accessing the first network to the session control object of the current user.
For the synchronization apparatus of the session control object provided in the embodiment of the present application, reference may be made to the synchronization method provided in the foregoing embodiment for a specific working principle, which is not described herein again.
The application provides a synchronization device of a session control object, which is applied to a first network application, wherein the first network application refers to any one network application in an application cluster, and the synchronization device comprises: the receiving unit 301 receives an application access request sent by a client; the judging unit 302 judges whether the application cluster stores a session control object of the current user; if the application cluster stores the session control object of the current user, the reading unit 303 reads the user behavior data recorded in the session control object of the current user, and if the application cluster does not store the session object of the current user, the creating unit 304 creates and stores the session control object of the current user through the session control service. In the scheme, the session control object of the user is stored in the application cluster, so that the application cluster can extract the storage behavior data of the session control object by only realizing one session control mechanism, thereby reducing the system resources consumed by the application cluster.
The embodiment of the present application further provides a server, please refer to fig. 4, which includes a memory 401 and a processor 402, and the server can be considered as any one server in an application server group for running an application cluster.
The memory 401 is used for storing a program, and the processor 402 is used for executing the program, where the program is specifically used for implementing the session control object synchronization method provided in any embodiment of the present application when executed.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
It should be noted that the terms "first", "second", and the like in the present invention are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
Those skilled in the art can make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A synchronization method of session control objects is applied to a first network application, wherein the first network application refers to any one network application in an application cluster, and the synchronization method comprises the following steps:
receiving an application access request sent by a client;
judging whether the application cluster stores a session control object of the current user or not; wherein the current user refers to a user currently using the client;
if the application cluster stores the session control object of the current user, reading user behavior data recorded in the session control object of the current user;
and if the session control object of the current user is not stored in the application cluster, creating and storing the session control object of the current user through the session control service of the application cluster.
2. The synchronization method according to claim 1, wherein the determining whether the application cluster stores the session control object of the current user comprises:
judging whether the application cluster opens session control service;
if the application cluster does not start session control service, determining that a session control object of the current user is not stored in the application cluster;
if the application cluster opens the session control service, searching the object storage record of the current user in the session control service;
if the object storage record of the current user is found out, determining that the application cluster stores the session control object of the current user;
and if the object storage record of the current user is not found, determining that the application cluster does not store the session control object of the current user.
3. The synchronization method according to claim 1, wherein before creating and storing the session control object of the current user by the session control service of the application cluster if the application cluster does not store the session control object of the current user, further comprising:
and if the application cluster does not start the session control service, the first network application starts the session control service.
4. The synchronization method according to claim 2, wherein the determining whether the application cluster opens a session control service comprises:
judging whether a configuration port of the application cluster is opened or not; wherein the configuration port is a pre-designated communication port used by the session control service;
if the configuration port is not opened, determining that the application cluster does not open the session control service;
if the configuration port is opened, verifying whether the service occupying the configuration port is the session control service;
if the service occupying the configuration port is the session control service, determining that the application cluster opens the session control service;
and if the service occupying the configuration port is not the session control service, determining that the session control service is not opened by the application cluster.
5. The synchronization method according to claim 1, wherein the application access request carries a user identifier of a current user;
wherein, the reading of the user behavior data recorded in the session control object of the current user includes:
searching a storage address of the session control object of the current user from a plurality of session control objects stored in the application cluster by using the user identifier of the current user;
and reading the user behavior data recorded in the session control object of the current user from the storage address of the session control object of the current user.
6. A synchronization apparatus of a session control object, applied to a first network application, the first network application referring to any one network application in an application cluster, the synchronization apparatus comprising:
the receiving unit is used for receiving an application access request sent by a client;
the judging unit is used for judging whether the application cluster stores a session control object of the current user or not; wherein the current user refers to a user currently using the client;
a reading unit, configured to read user behavior data recorded in the session control object of the current user if the application cluster stores the session control object of the current user;
and the creating unit is used for creating and storing the session control object of the current user through the session control service of the application cluster if the session control object of the current user is not stored in the application cluster.
7. The synchronization apparatus according to claim 6, wherein the determining unit is configured to determine whether the session control object of the current user is stored in the application cluster, specifically, when the session control object of the current user is stored in the application cluster
Judging whether the application cluster opens session control service;
if the application cluster does not start session control service, determining that a session control object of the current user is not stored in the application cluster;
if the application cluster opens the session control service, searching the object storage record of the current user in the session control service;
if the object storage record of the current user is found out, determining that the application cluster stores the session control object of the current user;
and if the object storage record of the current user is not found, determining that the application cluster does not store the session control object of the current user.
8. The synchronization apparatus according to claim 6, further comprising:
and the service starting unit is used for starting the session control service and storing the session control object of the current user acquired from the client through the session control service if the application cluster does not start the session control service.
9. The synchronization apparatus according to claim 7, wherein the determining unit, when determining whether the application cluster opens the session control service, is specifically configured to:
judging whether a configuration port of the application cluster is opened or not; wherein the configuration port is a pre-designated communication port used by the session control service;
if the configuration port is not opened, determining that the application cluster does not open the session control service;
if the configuration port is opened, verifying whether the service occupying the configuration port is the session control service;
if the service occupying the configuration port is the session control service, determining that the application cluster opens the session control service;
and if the service occupying the configuration port is not the session control service, determining that the session control service is not opened by the application cluster.
10. A server, wherein the server is any network application in an application cluster, and wherein the server comprises:
a memory for storing a program;
a processor for executing the program, which when executed is particularly adapted to implement the method of synchronization of session control objects as claimed in any of claims 1 to 5.
CN202010143238.5A 2020-03-04 2020-03-04 Synchronization method and device of session control object and server Active CN111385358B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010143238.5A CN111385358B (en) 2020-03-04 2020-03-04 Synchronization method and device of session control object and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010143238.5A CN111385358B (en) 2020-03-04 2020-03-04 Synchronization method and device of session control object and server

Publications (2)

Publication Number Publication Date
CN111385358A true CN111385358A (en) 2020-07-07
CN111385358B CN111385358B (en) 2023-04-18

Family

ID=71215216

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010143238.5A Active CN111385358B (en) 2020-03-04 2020-03-04 Synchronization method and device of session control object and server

Country Status (1)

Country Link
CN (1) CN111385358B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6076108A (en) * 1998-03-06 2000-06-13 I2 Technologies, Inc. System and method for maintaining a state for a user session using a web system having a global session server
US20060098622A1 (en) * 2004-11-05 2006-05-11 Vicotel, Inc. Architecture for a multi-media session controlled network
US20060143217A1 (en) * 2004-12-28 2006-06-29 Georgi Stanev Session management within a multi-tiered enterprise network
CN101030964A (en) * 2006-03-03 2007-09-05 华为技术有限公司 Session controller and controlling method
CN201682522U (en) * 2010-02-08 2010-12-22 阿里巴巴集团控股有限公司 Conversation information storage system and application server
CN102752323A (en) * 2011-04-18 2012-10-24 阿里巴巴集团控股有限公司 System and method for distributed session service
CN103200212A (en) * 2012-01-04 2013-07-10 中国移动通信集团公司 Method and system achieving distributed conversation under cloud computing environment
CN104735098A (en) * 2013-12-18 2015-06-24 青岛海尔空调器有限总公司 Session information control method and system
CN105812351A (en) * 2016-02-23 2016-07-27 平安科技(深圳)有限公司 Method and system for sharing session
CN106357778A (en) * 2016-09-27 2017-01-25 山东浪潮商用系统有限公司 Session information sharing method, device and system
CN107517227A (en) * 2016-06-15 2017-12-26 阿里巴巴集团控股有限公司 Session implementation method and device for distributed consensus system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6076108A (en) * 1998-03-06 2000-06-13 I2 Technologies, Inc. System and method for maintaining a state for a user session using a web system having a global session server
US20060098622A1 (en) * 2004-11-05 2006-05-11 Vicotel, Inc. Architecture for a multi-media session controlled network
US20060143217A1 (en) * 2004-12-28 2006-06-29 Georgi Stanev Session management within a multi-tiered enterprise network
CN101030964A (en) * 2006-03-03 2007-09-05 华为技术有限公司 Session controller and controlling method
CN201682522U (en) * 2010-02-08 2010-12-22 阿里巴巴集团控股有限公司 Conversation information storage system and application server
CN102752323A (en) * 2011-04-18 2012-10-24 阿里巴巴集团控股有限公司 System and method for distributed session service
CN103200212A (en) * 2012-01-04 2013-07-10 中国移动通信集团公司 Method and system achieving distributed conversation under cloud computing environment
CN104735098A (en) * 2013-12-18 2015-06-24 青岛海尔空调器有限总公司 Session information control method and system
CN105812351A (en) * 2016-02-23 2016-07-27 平安科技(深圳)有限公司 Method and system for sharing session
CN107517227A (en) * 2016-06-15 2017-12-26 阿里巴巴集团控股有限公司 Session implementation method and device for distributed consensus system
CN106357778A (en) * 2016-09-27 2017-01-25 山东浪潮商用系统有限公司 Session information sharing method, device and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ANILDA QEMALI;GABRIELE TAENTZER: "Towards Validation of Session Management in Web Applications based on Graph Transformation" *
高旭,沈苏彬,顾冠群: "网络多媒体应用体系结构研究" *

Also Published As

Publication number Publication date
CN111385358B (en) 2023-04-18

Similar Documents

Publication Publication Date Title
US11550759B2 (en) Saving files from third-party systems directly to a cloud storage system
CN110213356B (en) Login processing method based on data processing and related equipment
US9870268B2 (en) Virtual computing instance migration
WO2020155492A1 (en) Device id-based login state sharing method and device
WO2021218328A1 (en) Multi-tenant access service implementation method, apparatus and device, and storage medium
EP3164795B1 (en) Prompting login account
US8621574B2 (en) Opaque quarantine and device discovery
US8838679B2 (en) Providing state service for online application users
US10621651B2 (en) Automatic recharge system and method, and server
CN108337210B (en) Equipment configuration method, device and system
WO2021013033A1 (en) File operation method, apparatus, device, and system, and computer readable storage medium
WO2015101320A1 (en) Account number generation method, terminal and background server
US9471896B2 (en) Memo synchronization system, mobile system, and method for synchronizing memo data
CN111581631B (en) Single sign-on method based on redis
CN114124490B (en) Method and device for publishing new media content, storage medium and electronic equipment
WO2020168757A1 (en) Network system access method and apparatus, computer device, and readable storage medium
CN110430062B (en) Login request processing method, device, equipment and medium
CN109829321B (en) Method, device, equipment and storage medium for authenticating identity
CN109948332A (en) A kind of physical machine login password remapping method and device
CN109327468A (en) A kind of offline reminding method, device, equipment and storage medium
US10985998B1 (en) Domain controller configurability for directories
CN111385358B (en) Synchronization method and device of session control object and server
US10735399B2 (en) System, service providing apparatus, control method for system, and storage medium
JP2005534099A (en) Database synchronization
US9280384B2 (en) Method, server and system for processing task data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230516

Address after: 978, Room 406, No. 1 Yichuang Street, Huangpu District (Zhongxin Guangzhou Knowledge City), Guangzhou City, Guangdong Province, 510000

Patentee after: Guangzhou Tongxiang Digital Technology Co.,Ltd.

Address before: 570216 No. 168-39 Nanhai Avenue, Haikou City, Hainan Province

Patentee before: HAINAN JINPAN INTELLIGENT TECHNOLOGY CO.,LTD.