CN112153103A - Session management method, device, computer equipment and storage medium - Google Patents

Session management method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN112153103A
CN112153103A CN202010795155.4A CN202010795155A CN112153103A CN 112153103 A CN112153103 A CN 112153103A CN 202010795155 A CN202010795155 A CN 202010795155A CN 112153103 A CN112153103 A CN 112153103A
Authority
CN
China
Prior art keywords
session
service
request
database
conversation
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
CN202010795155.4A
Other languages
Chinese (zh)
Other versions
CN112153103B (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.)
Zhaolian Consumer Finance Co ltd
Original Assignee
Merchants Union Consumer Finance 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 Merchants Union Consumer Finance Co Ltd filed Critical Merchants Union Consumer Finance Co Ltd
Priority to CN202010795155.4A priority Critical patent/CN112153103B/en
Publication of CN112153103A publication Critical patent/CN112153103A/en
Application granted granted Critical
Publication of CN112153103B publication Critical patent/CN112153103B/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/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
    • 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
    • H04L67/141Setup of application sessions
    • 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
    • H04L67/142Managing session states for stateless protocols; Signalling session states; State transitions; Keeping-state mechanisms

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application relates to a session management method, a session management device, computer equipment and a storage medium, wherein the method comprises the steps of analyzing a service session request after the service session request is obtained, and obtaining environment channel information, user identification and service parameters carried by the service session request; searching a session database corresponding to the service session request according to the environment channel information; in the corresponding session database, the service session request is verified according to the user identification to obtain a verification result; and performing session management on the service session request in the corresponding session database according to the verification result, the environment channel information and the service parameters. According to the session management method, the service session request is verified in the corresponding session database through the environment channel information carried by the service session request, then session management is performed on the service session request according to the verification result, isolation management is performed on the session requests of different environment channels, and the requirement for session fine management can be effectively met.

Description

Session management method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a session management method and apparatus, a computer device, and a storage medium.
Background
With the rapid development of internet systems, a mechanism for controlling sessions, namely session (session control), has emerged. The Session object stores the attributes and configuration information needed for a particular user Session. Thus, when a user jumps between Web pages of an application, the variables stored in the Session object will not be lost, but will persist throughout the user Session. When a user requests a Web page from an application, the Web server will automatically create a Session object if the user has not already a Session. When a session expires or is abandoned, the server will terminate the session.
The existing session management method generally comprises the following steps: step 1, setting a Redis database in default configuration; step 2, when a user accesses a Remote Dictionary service (Redis) database for the first time, generating a random number for the user as an Identity (ID) of a session, converting the ID of the session into a character string, and setting the character string as KEY 1; step 3, acquiring the ip address of the user in the step 2, setting the ip address as KEY2 after the ip address is connected with KEY1 in a character string manner, and then commanding to check whether the session exists or not, and restarting from the step 2 if the session exists; and step 4, writing the KEY1 as a Cookie in an http response header, and executing corresponding operation on the Redis database. Therefore, the purpose of managing a large number of sessions and using the information stored in the sessions by any HTTP service program in the HTTP server cluster is achieved.
That is, in the prior art, the session is simply used as "information that can be used by any HTTP service program in the HTTP server cluster", which is difficult to meet the complex and diverse requirements of the current application scenario, and cannot realize the fine management of the session.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a session management method, device, computer device and storage medium capable of effectively performing session refinement management.
A method of session management, the method comprising:
acquiring a service session request;
analyzing the service session request, and acquiring environment channel information, user identification and service parameters carried by the service session request;
searching a session database corresponding to the service session request according to the environment channel information;
in the corresponding session database, the service session request is verified according to the user identification, and a verification result is obtained;
and carrying out session management on the service session request in the corresponding session database according to the verification result, the environment channel information and the service parameters.
In one embodiment, the verifying the service session request according to the user identifier in the corresponding session database, and obtaining a verification result includes:
and searching historical conversation in the corresponding conversation database according to the user identification, and acquiring a verification result corresponding to the service request according to whether the historical conversation exists in the corresponding conversation database.
In one embodiment, the performing, according to the check result and the service parameter, session management on the service session request in the corresponding session database includes:
when a historical conversation exists, carrying out conversation management on the service conversation request in the corresponding conversation database according to the service parameters;
and when no historical conversation exists, acquiring channel security information according to the environment channel information, and carrying out conversation management on the service conversation request in the corresponding conversation database according to the channel security information and the service parameters.
In one embodiment, the acquiring channel security information according to the environment channel information when there is no history session, and performing session management on the service session request in the corresponding session database according to the channel security information and the service parameter includes:
when no history conversation exists, channel safety information is obtained according to the environment channel information;
when the channel security information represents that the channel security corresponding to the environment channel information meets the standard, a service session is newly established in the corresponding session database according to the service parameters;
and when the channel security information represents that the channel security corresponding to the environment channel information is not up to standard, returning a session creation failure message.
In one embodiment, after a service session is newly established in the corresponding session database according to the service parameter, the method further includes:
and performing supplementary login processing on the user in the corresponding session database according to the user identifier.
In one embodiment, said searching for a historical session in said corresponding session database according to said user identification comprises:
acquiring a detection keyword according to the user identifier;
and according to the detected keywords, carrying out keyword search on the corresponding session database through a preset keyword search command, and acquiring historical sessions according to search results.
A session management apparatus, the apparatus comprising:
the request receiving module is used for acquiring a service session request;
the request analysis module is used for analyzing the service session request and acquiring environment channel information, user identification and service parameters carried by the service session request;
the database searching module is used for searching a session database corresponding to the service session request according to the environment channel information;
the session checking module is used for checking the service session request according to the user identification in the corresponding session database to obtain a checking result;
and the session management module is used for carrying out session management on the service session request in the corresponding session database according to the verification result, the environment channel information and the service parameters.
In one embodiment, the session check module is specifically configured to:
and searching historical conversation in the corresponding conversation database according to the user identification, and acquiring a verification result corresponding to the service request according to whether the historical conversation exists in the corresponding conversation database.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring a service session request;
analyzing the service session request, and acquiring environment channel information, user identification and service parameters carried by the service session request;
searching a session database corresponding to the service session request according to the environment channel information;
in the corresponding session database, the service session request is verified according to the user identification, and a verification result is obtained;
and carrying out session management on the service session request in the corresponding session database according to the verification result, the environment channel information and the service parameters.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring a service session request;
analyzing the service session request, and acquiring environment channel information, user identification and service parameters carried by the service session request;
searching a session database corresponding to the service session request according to the environment channel information;
in the corresponding session database, the service session request is verified according to the user identification, and a verification result is obtained;
and carrying out session management on the service session request in the corresponding session database according to the verification result, the environment channel information and the service parameters.
According to the session management method, the session management device, the computer equipment and the storage medium, after the service session request is obtained, the service session request is analyzed, and the environment channel information, the user identification and the service parameters carried by the service session request are obtained; searching a session database corresponding to the service session request according to the environment channel information; in the corresponding session database, the service session request is verified according to the user identification to obtain a verification result; and performing session management on the service session request in the corresponding session database according to the verification result, the environment channel information and the service parameters. According to the session management method, the service session request is verified in the corresponding session database through the environment channel information carried by the service session request, then session management is performed on the service session request according to the verification result, isolation management is performed on the session requests of different environment channels, and the requirement for session fine management can be effectively met.
Drawings
FIG. 1 is a diagram of an application environment of a session management method in one embodiment;
FIG. 2 is a flow diagram that illustrates a method for session management in one embodiment;
FIG. 3 is a flowchart illustrating a session management procedure performed on a service session request in a corresponding session database according to channel security information and service parameters in an embodiment;
FIG. 4 is a flow diagram that illustrates the processing of a find history session in one embodiment;
FIG. 5 is a block diagram showing the structure of a session management apparatus according to an embodiment;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The session management method provided by the application can be applied to the application environment shown in fig. 1. Wherein the terminal 102 communicates with the session management server 104 via a network. The session management server includes a plurality of session databases. First, when a user wishes to initiate a session request for a service, a corresponding service session request may be sent to the session management server 104 through the terminal 102. The session management server 104 acquires a service session request; analyzing the service session request, and acquiring environment channel information, user identification and service parameters carried by the service session request; searching a session database corresponding to the service session request according to the environment channel information; in the corresponding session database, the service session request is verified according to the user identification to obtain a verification result; and performing session management on the service session request in the corresponding session database according to the verification result, the environment channel information and the service parameters. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In one embodiment, as shown in fig. 2, a session management method is provided, which is described by taking the application of the method to the session management server 104 in fig. 1 as an example, and includes the following steps:
step 201, a service session request is obtained.
The session refers to a process of communication between an end user and an interactive system, and for example, a session process is from entering an operating system by inputting an account password to exiting the operating system. The service session request refers to a request initiated by the terminal user to the interactive system for a certain service, and is used for requesting the interactive system to complete a certain function.
In particular, when a user wishes to initiate a service, a service session request may be initiated through a service interface on the terminal 102. If a user wishes to log in to an application, the user may input account information for logging in, and then generate a service session request through the terminal 102, and send the service session request to the session management server 104, and the session management server 104 manages a session initiated by the user.
Step 203, analyzing the service session request, and acquiring the environment channel information, the user identifier and the service parameters carried by the service session request.
The environment channel identifier specifically refers to a source from which the service session request originates. For example, for an interactive system, the source from which the service session request originates may include an external webpage of the system or an own APP (Application) of the system. The user identifier is identity information representing a user, such as account password information input by the user, an IP (Internet Protocol) address of the user, and a device identification number of the user terminal. The service parameter specifically refers to service specific information corresponding to a service session request of a user. Such as the user wishing to log in to the system, or delete relevant information in the system, etc.
Step 205, searching a session database corresponding to the service session request according to the environment channel information.
The session data refers to a database for storing session information, and each time a user performs a session, the corresponding session information is stored in the database. In the present application, for each environment channel, there is a session database corresponding to each environment channel, and the session database is used for storing corresponding session data. The different channels are isolated. Therefore, the quantity of the session identification stored in the session data is reduced, and the pressure of a server side in the session management process is relieved. In the process of session management, isolation management is carried out on session requests of different environment channels, and the requirement of session fine management can be effectively met.
Specifically, the method and the device can search the session database corresponding to the channel according to the environment channel information obtained by analyzing the service session request, and manage the session requested by the service session request in the corresponding session database. In one embodiment, the session database of the present application may be implemented by a Redis database. At the moment, each environment channel corresponds to a Redis database one by one, and session information under different channels is stored in different Redis databases. After receiving the request, the entrance at one side of the session management server 104 can assign the request to different Redis databases according to the channel information, so that sessions in different channels are isolated from each other to facilitate management, and the magnitude of a single Redis database can be controlled.
Step 207, the service session request is verified according to the user identifier in the corresponding session database, and a verification result is obtained.
The checking specifically refers to finding whether a session related to the user exists in the session database.
In particular, in some cases, a business session request may be considered an abnormal session when no historical session record exists. At this time, the service session request may be rejected to perform corresponding session management, and in some cases, when there is no history session record, a corresponding session needs to be newly established to perform session management. Therefore, the service session request needs to be correspondingly verified according to the user identifier, and a corresponding verification result is obtained to be used as a data basis for session management in the subsequent process.
And step 209, performing session management on the service session request in the corresponding session database according to the verification result, the environment channel information and the service parameters.
Specifically, after the verification result is obtained, the current service session request may be classified based on the environment channel information and the service parameter. And determining a method for performing session management on the service session request according to the checking result and the classification processing result. And then corresponding session management is carried out.
The session management method comprises the steps of analyzing a service session request after the service session request is obtained, and obtaining environment channel information, user identification and service parameters carried by the service session request; searching a session database corresponding to the service session request according to the environment channel information; in the corresponding session database, the service session request is verified according to the user identification to obtain a verification result; and performing session management on the service session request in the corresponding session database according to the verification result, the environment channel information and the service parameters. According to the session management method, the service session request is verified in the corresponding session database through the environment channel information carried by the service session request, then session management is performed on the service session request according to the verification result, isolation management is performed on the session requests of different environment channels, and the requirement for session fine management can be effectively met.
In one embodiment, step 207 comprises: and searching historical conversation in the corresponding conversation database according to the user identification, and acquiring a verification result corresponding to the service request according to whether the historical conversation exists in the corresponding conversation database.
The historical session refers to a session that has been generated in a previous service processing process. Specifically, if the previous user has performed relevant business processing through the current environment channel, corresponding historical session information is generated in the session database. Meanwhile, the history session can be searched subsequently according to the user identification. And under the condition of carrying out related service processing, no history session exists in the session database, the history session cannot be found according to the user mark, and whether the history session exists or not is a check result corresponding to the service request. In the embodiment, the historical session is searched in the corresponding session database according to the user identifier, and then whether the service session request belongs to the normal service session request is verified according to whether the historical session exists, so that the accuracy of session management can be ensured, and meanwhile, the session is favorably refined.
In one embodiment, step 209 comprises: when the historical conversation exists, carrying out conversation management on the service conversation request in a corresponding conversation database according to the service parameters; and when no historical conversation exists, acquiring channel safety information according to the environment channel information, and performing conversation management on the service conversation request in a corresponding conversation database according to the channel safety information and the service parameters.
Specifically, when there is a history session, the session processing server 104 may determine that the current service session request is a normal service session request, and at this time, the session processing server may perform corresponding session management on the current service session request directly according to the service parameters also carried in the service session request. When there is no historical session, in order to ensure the processing security of the session process, it is necessary to first obtain the channel security information corresponding to the service session request. For the environment channel with enough safety, the conversation management with more loose drawing can be carried out, and for the environment channel with insufficient channel safety, a more compact conversation management strategy is executed. In this embodiment, the session management security is managed and controlled according to whether a historical session exists, and different session management policies are executed for service session requests of different channels, so that the security of the session management process can be effectively ensured.
In one embodiment, as shown in fig. 3, when there is no historical session, the step of acquiring channel security information according to the environment channel information, and performing session management on the service session request in the corresponding session database according to the channel security information and the service parameter includes:
and step 302, when no history conversation exists, acquiring channel safety information according to the environment channel information.
And step 304, when the channel security information represents the channel security standard corresponding to the environment channel information, establishing a new service session in the corresponding session database according to the service parameters.
And step 306, when the channel security corresponding to the channel security representation environment information is not up to standard, returning a session creation failure message.
Wherein the channel security information can be set by session management maintenance personnel on the session management server 104 side. Specifically, for an external channel, such as a channel accessed by an embedded web page, since the related information of the channel cannot be completely grasped, the security of the corresponding channel can be set to be low. For channels that can be completely mastered, if the service is only the channel of APP, the security of the corresponding channel can be set to be high.
Specifically, when there is no history session, in order to ensure the security of the rendezvous processing process, channel security information corresponding to the environment channel information needs to be acquired first. The process of acquiring the channel security information may be specifically obtained by looking up a channel security comparison table. After the channel security information is obtained, the channel security information can be judged once, specifically, whether the channel security reaches the standard or not is judged, and for the channel reaching the standard, namely for the channel with the guaranteed security, a service session can be newly established in the corresponding session database according to the service parameters. When the channel security is not up to the standard, the session processing server 104 may directly return a session creation failure message to the terminal 102 in order to ensure the security of session management. And ending the session management work of the round. In the embodiment, the service session requests under different channels are managed according to the security corresponding to the channels, and the service session is newly established for the service session request with higher security, so that the normal operation of the session can be effectively ensured on the premise of ensuring the security of the session.
In one embodiment, after a service session is newly established in a corresponding session database according to service parameters, the method further includes: and performing supplementary login processing on the user in the corresponding session database according to the user identifier.
The additional registration means that corresponding login information is supplemented according to the user identification of the user. Specifically, when there is no history session corresponding to the service session request in the corresponding session database, the session is normally performed in order to ensure. In the session management process, after a service session corresponding to the service session request is newly established, a supplementary login process is also required. In this embodiment, after a service session is newly created, a user is subjected to a registration process, so that normal session management can be more effectively ensured.
In one embodiment, as shown in fig. 4, searching the historical sessions in the corresponding session database according to the user identifier includes:
step 401, acquiring a detection keyword according to the user identifier.
And step 403, according to the detected keywords, performing keyword search in the corresponding session database through a preset keyword search command, and acquiring historical sessions according to search results.
The detection keyword specifically refers to keyword data for searching in the session database, and in one embodiment, the IP address of the user may be used as the detection keyword, and corresponding detection is performed in the session database according to the IP address, so as to search for the historical session. The preset keyword search command refers to an instruction used to search for a session in the session database. If the session database is specifically a Redis database, it can be checked whether the history session already exists through the keyword retrieval command of Redis' exists command. Specifically, in order to find out whether there is a history session, the session management server 104 may first extract a detection keyword from the user identifier. And then retrieves whether there is historical session related data based on the detection key. In the embodiment, the historical conversation can be searched more efficiently by extracting the retrieval keywords and presetting the keyword search command, and the processing efficiency in the conversation management process is improved.
It should be understood that although the various steps in the flow charts of fig. 2-4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-4 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 5, there is provided a session management apparatus, wherein:
a request receiving module 501, configured to obtain a service session request.
The request analysis module 503 is configured to analyze the service session request, and acquire environment channel information, a user identifier, and a service parameter carried in the service session request.
And the database searching module 505 is configured to search a session database corresponding to the service session request according to the environment channel information.
The session check module 507 is configured to check the service session request according to the user identifier in the corresponding session database, and obtain a check result.
And the session management module 509 is configured to perform session management on the service session request in the corresponding session database according to the verification result, the environment channel information, and the service parameter.
In one embodiment, the session check module 507 is specifically configured to: and searching historical conversation in the corresponding conversation database according to the user identification, and acquiring a verification result corresponding to the service request according to whether the historical conversation exists in the corresponding conversation database.
In one embodiment, the session management module 509 is specifically configured to: when the historical conversation exists, carrying out conversation management on the service conversation request in a corresponding conversation database according to the service parameters; and when no historical conversation exists, acquiring channel safety information according to the environment channel information, and performing conversation management on the service conversation request in a corresponding conversation database according to the channel safety information and the service parameters.
In one embodiment, the session management module 509 is specifically configured to: when no history conversation exists, channel safety information is obtained according to the environment channel information; when the channel security information represents that the channel security corresponding to the environment channel information meets the standard, a service session is newly established in a corresponding session database according to the service parameters; and when the channel security corresponding to the channel security representation environment information is not up to standard, returning a session creation failure message.
In one embodiment, the system further includes a supplementary entry processing module, which is specifically configured to: and performing supplementary login processing on the user in the corresponding session database according to the user identifier.
In one embodiment, the session check module is specifically configured to: acquiring a detection keyword according to the user identifier; and according to the detected keywords, carrying out keyword search on a corresponding session database through a preset keyword search command, and acquiring historical sessions according to search results.
For the specific definition of the session management device, reference may be made to the above definition of the session management method, which is not described herein again. The modules in the session management device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing session management data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a session management method.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
acquiring a service session request;
analyzing the service session request, and acquiring environment channel information, user identification and service parameters carried by the service session request;
searching a session database corresponding to the service session request according to the environment channel information;
in the corresponding session database, the service session request is verified according to the user identification to obtain a verification result;
and performing session management on the service session request in the corresponding session database according to the verification result, the environment channel information and the service parameters.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and searching historical conversation in the corresponding conversation database according to the user identification, and acquiring a verification result corresponding to the service request according to whether the historical conversation exists in the corresponding conversation database.
In one embodiment, the processor, when executing the computer program, further performs the steps of: when the historical conversation exists, carrying out conversation management on the service conversation request in a corresponding conversation database according to the service parameters; and when no historical conversation exists, acquiring channel safety information according to the environment channel information, and performing conversation management on the service conversation request in a corresponding conversation database according to the channel safety information and the service parameters.
In one embodiment, the processor, when executing the computer program, further performs the steps of: when no history conversation exists, channel safety information is obtained according to the environment channel information; when the channel security information represents that the channel security corresponding to the environment channel information meets the standard, a service session is newly established in a corresponding session database according to the service parameters; and when the channel security corresponding to the channel security representation environment information is not up to standard, returning a session creation failure message.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and performing supplementary login processing on the user in the corresponding session database according to the user identifier.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring a detection keyword according to the user identifier; and according to the detected keywords, carrying out keyword search on a corresponding session database through a preset keyword search command, and acquiring historical sessions according to search results.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring a service session request;
analyzing the service session request, and acquiring environment channel information, user identification and service parameters carried by the service session request;
searching a session database corresponding to the service session request according to the environment channel information;
in the corresponding session database, the service session request is verified according to the user identification to obtain a verification result;
and performing session management on the service session request in the corresponding session database according to the verification result, the environment channel information and the service parameters.
In one embodiment, the computer program when executed by the processor further performs the steps of: and searching historical conversation in the corresponding conversation database according to the user identification, and acquiring a verification result corresponding to the service request according to whether the historical conversation exists in the corresponding conversation database.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the historical conversation exists, carrying out conversation management on the service conversation request in a corresponding conversation database according to the service parameters; and when no historical conversation exists, acquiring channel safety information according to the environment channel information, and performing conversation management on the service conversation request in a corresponding conversation database according to the channel safety information and the service parameters.
In one embodiment, the computer program when executed by the processor further performs the steps of: when no history conversation exists, channel safety information is obtained according to the environment channel information; when the channel security information represents that the channel security corresponding to the environment channel information meets the standard, a service session is newly established in a corresponding session database according to the service parameters; and when the channel security corresponding to the channel security representation environment information is not up to standard, returning a session creation failure message.
In one embodiment, the computer program when executed by the processor further performs the steps of: and performing supplementary login processing on the user in the corresponding session database according to the user identifier.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring a detection keyword according to the user identifier; and according to the detected keywords, carrying out keyword search on a corresponding session database through a preset keyword search command, and acquiring historical sessions according to search results.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of session management, the method comprising:
acquiring a service session request;
analyzing the service session request, and acquiring environment channel information, user identification and service parameters carried by the service session request;
searching a session database corresponding to the service session request according to the environment channel information;
in the corresponding session database, the service session request is verified according to the user identification, and a verification result is obtained;
and carrying out session management on the service session request in the corresponding session database according to the verification result, the environment channel information and the service parameters.
2. The method according to claim 1, wherein the verifying the service session request according to the user identifier in the corresponding session database, and obtaining a verification result comprises:
and searching historical conversation in the corresponding conversation database according to the user identification, and acquiring a verification result corresponding to the service request according to whether the historical conversation exists in the corresponding conversation database.
3. The method according to claim 2, wherein said performing session management on the service session request in the corresponding session database according to the verification result and the service parameter comprises:
when a historical conversation exists, carrying out conversation management on the service conversation request in the corresponding conversation database according to the service parameters;
and when no historical conversation exists, acquiring channel security information according to the environment channel information, and carrying out conversation management on the service conversation request in the corresponding conversation database according to the channel security information and the service parameters.
4. The method of claim 3, wherein when there is no historical session, acquiring channel security information according to the environment channel information, and performing session management on the service session request in the corresponding session database according to the channel security information and the service parameters comprises:
when no history conversation exists, channel safety information is obtained according to the environment channel information;
when the channel security information represents that the channel security corresponding to the environment channel information meets the standard, a service session is newly established in the corresponding session database according to the service parameters;
and when the channel security information represents that the channel security corresponding to the environment channel information is not up to standard, returning a session creation failure message.
5. The method of claim 4, wherein after the new service session is created in the corresponding session database according to the service parameters, the method further comprises:
and performing supplementary login processing on the user in the corresponding session database according to the user identifier.
6. The method of claim 2, wherein said searching for historical sessions within the corresponding session database based on the user identification comprises:
acquiring a detection keyword according to the user identifier;
and according to the detected keywords, carrying out keyword search on the corresponding session database through a preset keyword search command, and acquiring historical sessions according to search results.
7. A session management apparatus, characterized in that the apparatus comprises:
the request receiving module is used for acquiring a service session request;
the request analysis module is used for analyzing the service session request and acquiring environment channel information, user identification and service parameters carried by the service session request;
the database searching module is used for searching a session database corresponding to the service session request according to the environment channel information;
the session checking module is used for checking the service session request according to the user identification in the corresponding session database to obtain a checking result;
and the session management module is used for carrying out session management on the service session request in the corresponding session database according to the verification result, the environment channel information and the service parameters.
8. The apparatus of claim 7, wherein the session check module is specifically configured to:
and searching historical conversation in the corresponding conversation database according to the user identification, and acquiring a verification result corresponding to the service request according to whether the historical conversation exists in the corresponding conversation database.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN202010795155.4A 2020-08-10 2020-08-10 Session management method, device, computer equipment and storage medium Active CN112153103B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010795155.4A CN112153103B (en) 2020-08-10 2020-08-10 Session management method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010795155.4A CN112153103B (en) 2020-08-10 2020-08-10 Session management method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112153103A true CN112153103A (en) 2020-12-29
CN112153103B CN112153103B (en) 2022-12-23

Family

ID=73888356

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010795155.4A Active CN112153103B (en) 2020-08-10 2020-08-10 Session management method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112153103B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113098935A (en) * 2021-03-24 2021-07-09 北京顺达同行科技有限公司 Session keeping method, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1306716A (en) * 1998-04-20 2001-08-01 太阳微系统公司 Method and appts. for session management and user authentication
US6484174B1 (en) * 1998-04-20 2002-11-19 Sun Microsystems, Inc. Method and apparatus for session management and user authentication
CN106453661A (en) * 2016-12-09 2017-02-22 北京酷我科技有限公司 Session management method for HTTP server cluster
CN107483418A (en) * 2017-07-27 2017-12-15 阿里巴巴集团控股有限公司 Login process method, method for processing business, device and server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1306716A (en) * 1998-04-20 2001-08-01 太阳微系统公司 Method and appts. for session management and user authentication
US6484174B1 (en) * 1998-04-20 2002-11-19 Sun Microsystems, Inc. Method and apparatus for session management and user authentication
CN106453661A (en) * 2016-12-09 2017-02-22 北京酷我科技有限公司 Session management method for HTTP server cluster
CN107483418A (en) * 2017-07-27 2017-12-15 阿里巴巴集团控股有限公司 Login process method, method for processing business, device and server

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113098935A (en) * 2021-03-24 2021-07-09 北京顺达同行科技有限公司 Session keeping method, device and storage medium

Also Published As

Publication number Publication date
CN112153103B (en) 2022-12-23

Similar Documents

Publication Publication Date Title
US20200285978A1 (en) Model training system and method, and storage medium
US10496263B2 (en) De-anonymization of website visitor identity
CN111079104A (en) Authority control method, device, equipment and storage medium
CN107948203A (en) A kind of container login method, application server, system and storage medium
CN108322521B (en) Message content pushing method, device, system, computer equipment and storage medium
CN109684873B (en) Data access control method and device, computer equipment and storage medium
CN109547426B (en) Service response method and server
CN113159737B (en) RPA service processing method, RPA management platform, device and medium
CN112838951B (en) Operation and maintenance method, device and system of terminal equipment and storage medium
CN109150913B (en) Method and device for accessing application under micro-service architecture, storage medium and server
CN111988295A (en) Database auditing method and device, WEB server, database auditing system and storage medium
CN112153103B (en) Session management method, device, computer equipment and storage medium
CN113949579B (en) Website attack defense method and device, computer equipment and storage medium
KR20200066428A (en) A unit and method for processing rule based action
CN110648052B (en) Wind control decision method and device, computer equipment and storage medium
US10831878B2 (en) Preventing unauthorized access to secure information systems using dynamic, multi-device authentication
CN113778709B (en) Interface calling method, device, server and storage medium
CN110909074A (en) Method and device for processing social data, computer equipment and storage medium
CN110430211B (en) Virtualization cloud desktop system and operation method
CN111367573B (en) Equipment login method, device, storage medium and computer equipment
CN114780977A (en) File processing method, device, equipment and storage medium
CN112883422A (en) Database access control method and device based on protocol analysis and server
CN111291044A (en) Sensitive data identification method and device, electronic equipment and storage medium
US20200204544A1 (en) Biometric security for cloud services
CN113992742B (en) Interface access method, device, equipment and storage medium

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Patentee after: Zhaolian Consumer Finance Co.,Ltd.

Country or region after: China

Address before: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Patentee before: MERCHANTS UNION CONSUMER FINANCE Co.,Ltd.

Country or region before: China