WO2021082538A1 - 会话控制处理方法、装置、设备及介质 - Google Patents

会话控制处理方法、装置、设备及介质 Download PDF

Info

Publication number
WO2021082538A1
WO2021082538A1 PCT/CN2020/103104 CN2020103104W WO2021082538A1 WO 2021082538 A1 WO2021082538 A1 WO 2021082538A1 CN 2020103104 W CN2020103104 W CN 2020103104W WO 2021082538 A1 WO2021082538 A1 WO 2021082538A1
Authority
WO
WIPO (PCT)
Prior art keywords
session control
target
mapping relationship
terminal device
server
Prior art date
Application number
PCT/CN2020/103104
Other languages
English (en)
French (fr)
Inventor
廉烨
Original Assignee
中国银联股份有限公司
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 中国银联股份有限公司 filed Critical 中国银联股份有限公司
Publication of WO2021082538A1 publication Critical patent/WO2021082538A1/zh

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

Definitions

  • This application relates to the field of computer network technology, and in particular to a session control processing method, device, equipment and medium.
  • the server When the client initiates a service request to the server, the server immediately generates a session control (session) response to the client and stores the session control.
  • session control session
  • the server stores multiple session controls, and the session control occupies more storage space.
  • the embodiments of the present application provide a session control processing method, device, device, and medium, which can reduce the occupation of storage space.
  • an embodiment of the present application provides a session control processing method, including:
  • an embodiment of the present application provides a session control processing method, including:
  • an embodiment of the present application provides a session control processing device, including:
  • the first receiving module is configured to receive a service request sent by a terminal device
  • the generation module is used to generate the target session control corresponding to the business request
  • the first deletion module is used to delete the session control according to the target session control.
  • an embodiment of the present application provides a session control processing device, including:
  • the third sending module is used to send a service request to the server for the server to generate a target session control corresponding to the service request, and delete the session control according to the target session control.
  • an embodiment of the present application provides a session control processing device, including: a processor, a memory, and a computer program stored on the memory and capable of running on the processor.
  • the computer program is executed by the processor to implement the embodiment of the present application.
  • the session control processing method provided by the first aspect or the second aspect.
  • an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored.
  • the computer program is executed by a processor, the session control provided in the first or second aspect of the embodiments of the present application is implemented. Approach.
  • the server after the server generates a new session control, the previous session control can be deleted, which can reduce the occupation of storage space.
  • FIG. 1 shows a schematic flowchart of a session control processing method provided by the first aspect of the embodiments of the present application
  • Figure 2 shows a schematic diagram of the first process of session control processing
  • Figure 3 shows a schematic diagram of a second process of session control processing
  • FIG. 4 shows a schematic structural diagram of a session control processing apparatus provided by the third aspect of the embodiments of the present application.
  • Fig. 5 shows a structural diagram of an exemplary hardware architecture of a computing device capable of implementing the session control processing method and apparatus according to the embodiments of the present application.
  • any lower limit can be combined with any upper limit to form an unspecified range; and any lower limit can be combined with other lower limits to form an unspecified range, and any upper limit can be combined with any other upper limit to form an unspecified range.
  • every point or single value between the end points of the range is included in the range. Therefore, each point or single value can be used as its own lower limit or upper limit in combination with any other point or single value or with other lower limit or upper limit to form an unspecified range.
  • embodiments of the present application provide a session control processing method, device, equipment, and storage medium. The following first describes the session control processing method provided by the embodiment of the present application.
  • FIG. 1 shows a schematic flowchart of a session control processing method provided by the first aspect of the embodiments of the present application.
  • the session control processing method provided in the first aspect of the embodiments of the present application can be applied to a server.
  • the session control processing method provided in the first aspect of the embodiments of the present application may include:
  • S101 Receive a service request sent by a terminal device.
  • S102 Generate a target session control corresponding to the service request.
  • the session control processing method of the embodiment of the present application after the server generates a new session control, the session control can be deleted, which can reduce the occupation of storage space.
  • the embodiment of this application does not limit the method used to generate session control, and any available session control generation method can be applied to the embodiment of this application.
  • the device fingerprint of the terminal device when the session control is deleted according to the target session control, the device fingerprint of the terminal device may be determined according to the terminal device information of the terminal device; the device fingerprint of the terminal device can be determined from the session control that has a mapping relationship with the device fingerprint. Session control; delete the session control that has a mapping relationship with the device fingerprint except for the session control to be retained.
  • the terminal device can send its terminal device information to the server, and the server determines the device fingerprint of the terminal device according to the terminal device information of the terminal device.
  • the terminal device information may include: the name, model, shape, color, and function of the device.
  • Device fingerprint refers to the device feature or unique device identification that can be used to uniquely identify the device.
  • the embodiment of the present application does not limit the method used to determine the device fingerprint of the terminal device according to the terminal device information of the terminal device, and any available method may be applied to the embodiment of the present application.
  • the mapping relationship between the target session control and the device fingerprint can be stored.
  • the mapping relationship between session control and device fingerprint is shown in Table 1.
  • the forward mapping relationship and the reverse mapping relationship between the target session control and the device fingerprint can be stored.
  • the forward mapping relationship refers to the mapping relationship between the session control stored with the session control as the primary key and the device fingerprint
  • the reverse mapping relationship refers to the mapping relationship between the session control stored with the device fingerprint as the primary key and the device fingerprint.
  • the generation time of the session control may also be stored.
  • the session control to be retained can be determined from the session control that has a mapping relationship with the device fingerprint, and the session control that has a mapping relationship with the device fingerprint is deleted except for the session control to be retained.
  • the session control to be reserved is determined from the session control (session control 2, session control 4, and session control 8) having a mapping relationship with the device fingerprint 3. Assuming that the determined sessions to be reserved are session control 2 and session control 8, then session control 4 is deleted.
  • the first preset number of session controls when determining the session control to be retained, may be selected from the session controls that have a mapping relationship with the device fingerprint; the first preset number of session controls are determined For the session control to be reserved.
  • the device fingerprint of the terminal device is device fingerprint 3, and the first preset number is 2.
  • two session controls are selected from the session controls (session control 2, session control 4, and session control 8) that have a mapping relationship with the device fingerprint 3.
  • the selected session control is the session control 4 and the session control 8
  • the session control 4 and the session control 8 are determined as the session control to be reserved.
  • the first preset may be selected from the session controls that have a mapping relationship with the device fingerprint except for the target session control. The number is reduced by 1 session control; the target session control and the selected session control are determined as the session control to be reserved.
  • the target session control is session control 8
  • the device fingerprint of the terminal device is device fingerprint 3, and the first preset number is 2.
  • one session control is selected from session control 2 and session control except session control 8 in the session control having a mapping relationship with the device fingerprint 3.
  • session control 2 and session control 8 are determined as session controls to be reserved.
  • the session control when determining the session control to be retained, from the session control that has a mapping relationship with the device fingerprint, determine the second preset number of session controls that are the shortest time to generate the target session control; The second preset number of session controls are determined to be the to-be-reserved session controls.
  • the target session control is session control 8
  • the device fingerprint of the terminal device is device fingerprint 3
  • the second preset number is 2.
  • Time 7 corresponding to session control 2 is earlier than time 9 corresponding to session control 8
  • time 8 corresponding to session control 4 is earlier than time 7 corresponding to session control 2.
  • the session control session control 2, session control 4, and session control 8
  • the session control 2 and the session control 8 are determined as the to-be-reserved session control.
  • the server only stores the session control to be reserved, and the session control except the session control to be reserved is deleted, which can reduce the occupation of storage space.
  • the effective duration of the mapping relationship can also be set; when the storage duration of the mapping relationship reaches the effective duration, the mapping relationship is deleted.
  • the session control corresponding to the terminal device that has not sent a service request for a long time can be deleted, and the occupation of storage space can be reduced.
  • the server may send the target session control to the terminal device.
  • the terminal device may send a first confirmation message including the previous session control of the target session control to the server.
  • the server searches for the device fingerprint that has a mapping relationship with the previous session control; deletes the session control before the previous session control in the session control that has a mapping relationship with the device fingerprint (that is, deletes the device fingerprint that has a mapping relationship) In the session control of the relationship, other session controls except the target session control and the previous session control of the target session control).
  • the target session control is session control 8
  • the previous session control of session control 8 is session control 2
  • the previous session of session control 2 is session control 4.
  • the terminal device sends a first confirmation message including session control 2 to the server.
  • the server finds that the device fingerprint that has a mapping relationship with the session control 2 is the device fingerprint 3.
  • the mapping relationship with device fingerprint 3 includes session control 2, session control 4, and session control 8.
  • the time 7 corresponding to session control 2 is earlier than the time 9 corresponding to session control 8, and the time 8 corresponding to session control 4 is earlier than Time 7 corresponding to Session Control 2. Then delete session control 4.
  • the server only stores two session controls, and the remaining session controls are deleted, which can reduce the occupation of storage space.
  • the terminal device may also send a second confirmation message including the target session control to the server.
  • the server After the server receives the second confirmation message, it searches for the device fingerprint that has a mapping relationship with the target session control; deletes the session control before the target session control in the session control that has a mapping relationship with the device fingerprint (that is, deletes the device fingerprint that has a mapping relationship with the device fingerprint). In the session control, other session control except the target session control).
  • the terminal device sends a second confirmation message including the session control 8 to the server.
  • the server finds that the device fingerprint that has a mapping relationship with the session control 8 is device fingerprint 3.
  • the mapping relationship with device fingerprint 3 includes session control 2, session control 4, and session control 8.
  • the time 7 corresponding to session control 2 is earlier than the time 9 corresponding to session control 8, and the time 8 corresponding to session control 4 is earlier than Time 7 corresponding to Session Control 2. Then delete session control 2 and session control 4.
  • the server only stores one session control, and the remaining session controls are deleted, which can reduce the occupation of storage space.
  • Figure 2 shows a schematic diagram of the first process of session control processing.
  • the terminal device sends a service request to the server.
  • the server After the server receives the service request, it generates the target session control corresponding to the service request; feeds back the target session control to the terminal device; determines the device fingerprint of the terminal device according to the terminal device information of the terminal device; stores the device fingerprint and terminal device information Correspondence, the forward mapping relationship between the storage target session control and the device fingerprint, and the reverse mapping relationship between the storage target session control and the device fingerprint; then, determine the session control to be retained from the session control that has a mapping relationship with the device fingerprint; delete In the session control that has a mapping relationship with the device fingerprint, the session control except the session control to be reserved.
  • the terminal device After receiving the target session control, the terminal device stores the target session control, and sends the first confirmation information of the previous session control including the target session control to the server.
  • the server After receiving the first confirmation information, the server searches for the device fingerprint that has a mapping relationship with the previous session control; deletes the session control before the previous session control in the session control that has a mapping relationship with the device fingerprint.
  • the server can store only the to-be-reserved session control, except for the to-be-reserved session control.
  • the session control outside the control is deleted, which can reduce the storage space occupation.
  • the server can receive the first confirmation message sent by the terminal device, the server can store only two session controls (the target session control and the previous session control of the target session control), the sessions other than the target session control and the target session control Controls are deleted, which can reduce storage space usage.
  • FIG. 3 shows a schematic diagram of the second process of session control processing.
  • the terminal device sends a service request to the server.
  • the server After the server receives the service request, it generates the target session control corresponding to the service request; feeds back the target session control to the terminal device; determines the device fingerprint of the terminal device according to the terminal device information of the terminal device; stores the device fingerprint and terminal device information Correspondence, the forward mapping relationship between the storage target session control and the device fingerprint, and the reverse mapping relationship between the storage target session control and the device fingerprint; then, determine the session control to be retained from the session control that has a mapping relationship with the device fingerprint; delete In the session control that has a mapping relationship with the device fingerprint, the session control except the session control to be reserved.
  • the terminal device After receiving the target session control, the terminal device stores the target session control, and sends the second confirmation information including the target session control to the server.
  • the server After receiving the second confirmation information, the server searches for the device fingerprint that has a mapping relationship with the target session control; deletes the session control before the target session control in the session control that has a mapping relationship with the device fingerprint.
  • the server can store only the to-be-reserved session control, except for the to-be-reserved session control.
  • the session control outside the control is deleted, which can reduce the storage space occupation.
  • the server can store only one session control (target session control), and the session controls except the target session control are deleted, which can reduce the storage space occupation.
  • the session information is deleted based on the session control to be retained and the first confirmation information, through the previous session control of the target session control, it is bound to be able to find the device fingerprint that has a mapping relationship with the previous session control, and then the session can be checked.
  • the information is deleted. Therefore, the process of deleting session information based on the session control to be retained and the process of deleting session information based on the first confirmation information can be performed in an asynchronous manner.
  • the server has not determined the device fingerprint, and therefore it is impossible to store the mapping relationship between the target session control and the device fingerprint; for another example, although the server has determined the device fingerprint, it has not yet stored the mapping relationship between the target session control and the device fingerprint.
  • the deletion processing of the session information based on the session control to be retained and the deletion processing of the session information based on the first confirmation information are performed in an asynchronous manner, it may be that the device fingerprint that has a mapping relationship with the target session control is not found. An error occurred.
  • the process of deleting session information based on the session control to be retained and the process of deleting session information based on the first confirmation information can be performed in a synchronous manner.
  • the server may send a response message to the terminal device.
  • the response message is used to inform the terminal device that "the server has stored the mapping relationship between the target session control and the device fingerprint".
  • the terminal device sends to the server second confirmation information including target session control.
  • the server searches for the device fingerprint that has a mapping relationship with the target session control; deletes the session control before the target session control in the session control that has a mapping relationship with the device fingerprint.
  • the corresponding relationship between the device fingerprint and the terminal device information may be stored.
  • the correspondence between device fingerprints and terminal device information is shown in Table 7.
  • Device fingerprint Terminal equipment information Device fingerprint 1 Terminal equipment information 1 Device fingerprint 2 Terminal equipment information 2 Device fingerprint 3 Terminal equipment information 3 Device fingerprint 4 Terminal equipment information 4
  • the terminal device may also send a terminal device information query request including target session control to the server.
  • the server After receiving the terminal device information query request, the server searches for device fingerprints that have a mapping relationship with the target session control; searches for terminal device information that has a corresponding relationship with the searched device fingerprints; and feeds back the searched terminal device information to the terminal equipment.
  • the terminal device sends a terminal device information query request including the session control 8 to the server.
  • the server finds that the device fingerprint that has a mapping relationship with the session control 8 is the device fingerprint 3, and then finds the terminal device information 3 that has a corresponding relationship with the device fingerprint 3, and feeds back the terminal device information 3 to the terminal device.
  • the terminal device can use the terminal device information 3 to perform identity verification on the terminal device or perform risk verification on the business.
  • the server may send the target session control to the terminal device.
  • the terminal device After receiving the target session control, the terminal device can store the target session control.
  • the terminal device may store the target session control in a local file. Compared with the related technical terminal device storing the session control in the memory, it can prevent the loss of the session control caused by the memory of the terminal device being cleared.
  • the terminal device may also delete the session control other than the target session control stored in the local file, so as to save the occupation of storage space.
  • the second aspect of the embodiments of the present application also provides a session control processing method.
  • the session control processing method provided in the second aspect of the embodiments of the present application may be applied to terminal devices.
  • the session control processing method provided by the second aspect of the embodiments of the present application may include:
  • the session control processing method provided in the second aspect of the embodiment of the present application may further include:
  • storing target session control may include:
  • the session control processing method provided in the second aspect of the embodiment of the present application may further include:
  • the session control processing method provided in the second aspect of the embodiment of the present application may further include:
  • the first confirmation message including the previous session control of the target session control is sent to the server for the server to delete the session control according to the previous session control.
  • the session control processing method provided in the second aspect of the embodiment of the present application may further include:
  • a second confirmation message including the target session control is sent to the server for the server to delete the session control according to the target session control.
  • the session control processing method provided in the second aspect of the embodiment of the present application may further include:
  • the embodiment of the present application also provides a session control processing device.
  • Fig. 4 shows a schematic structural diagram of a session control processing apparatus provided by the third aspect of the embodiments of the present application.
  • the session control processing apparatus provided in the third aspect of the embodiments of the present application may be applied to a server.
  • the session control processing apparatus 400 provided in the third aspect of the embodiments of the present application may include:
  • the first receiving module 401 is configured to receive a service request sent by a terminal device.
  • the generating module 402 is used to generate the target session control corresponding to the service request.
  • the first deleting module 403 is used to delete the session control according to the target session control.
  • the first deletion module 403 may include:
  • the first determining unit determines the device fingerprint of the terminal device according to the terminal device information of the terminal device;
  • the second determining unit determines the to-be-reserved session control according to the session control that has a mapping relationship with the device fingerprint
  • the deleting unit is used to delete the session control that has a mapping relationship with the device fingerprint except for the session control to be retained.
  • the second determining unit may be specifically used for:
  • the second determining unit may be specifically used for:
  • the session control processing apparatus provided in the third aspect of the embodiment of the present application may further include:
  • the first storage module is used to store the mapping relationship between the target session control and the device fingerprint.
  • the first storage module may be specifically used for:
  • the forward mapping relationship and the reverse mapping relationship between the target session control and the device fingerprint are stored.
  • the session control processing apparatus provided in the third aspect of the embodiment of the present application may further include:
  • the setting module is used to set the effective duration of the mapping relationship
  • the second deleting module is used to delete the mapping relationship when the storage duration of the mapping relationship reaches the effective duration.
  • the session control processing apparatus provided in the third aspect of the embodiment of the present application may further include:
  • the second storage module is used to store the correspondence between device fingerprints and terminal device information.
  • the first deletion module 403 can be specifically used for:
  • the first deletion module 403 can be specifically used for:
  • the session control processing apparatus provided in the third aspect of the embodiment of the present application may further include:
  • the first sending module is used to send the target session control to the terminal device.
  • the session control processing apparatus provided in the third aspect of the embodiment of the present application may further include:
  • the second receiving module is configured to receive a terminal device information query request sent by a terminal device, and the terminal device information query request includes target session control;
  • the search module is used to search for device fingerprints that have a mapping relationship with the target session control, and search for terminal device information that has a corresponding relationship with the searched device fingerprints;
  • the second sending module is used to feed back the found terminal device information to the terminal device.
  • a fourth aspect of the embodiments of the present application provides a session control processing device.
  • the session control processing apparatus provided in the fourth aspect of the embodiments of the present application may be applied to terminal equipment.
  • the session control processing apparatus provided by the fourth aspect of the embodiments of the present application may include:
  • the third sending module is used to send a service request to the server for the server to generate a target session control corresponding to the service request, and delete the session control according to the target session control.
  • the session control processing apparatus provided in the fourth aspect of the embodiment of the present application may further include:
  • the third receiving module is used to receive the target session control sent by the server
  • the third storage module is used to store the target session control.
  • the third storage module may be specifically used for:
  • the session control processing apparatus provided in the fourth aspect of the embodiment of the present application may further include:
  • the third deleting module is used to delete the session control stored in the local file except for the target session control.
  • the session control processing apparatus provided in the fourth aspect of the embodiment of the present application may further include:
  • the fourth sending module is configured to send a first confirmation message including the previous session control of the target session control to the server, so as to be used by the server to delete the session control according to the previous session control.
  • the session control processing apparatus provided in the fourth aspect of the embodiment of the present application may further include:
  • the fifth sending module is configured to send a second confirmation message including the target session control to the server for the server to delete the session control according to the target session control.
  • the session control processing apparatus provided in the fourth aspect of the embodiment of the present application may further include:
  • the sixth sending module is configured to send a terminal device information query request including target session control to the server, so that the server can search for terminal device information based on the target session control;
  • the fourth receiving module is used to receive terminal device information found by the server.
  • the embodiment of the present application also provides a session control processing device, which may include: a memory storing computer executable instructions; and a processor, which can implement the embodiments of the present application when the processor executes the computer executable instructions
  • a session control processing device which may include: a memory storing computer executable instructions; and a processor, which can implement the embodiments of the present application when the processor executes the computer executable instructions
  • the session control processing method provided by the first aspect or the second aspect.
  • Fig. 5 shows a structural diagram of an exemplary hardware architecture of a computing device capable of implementing the session control processing method and apparatus according to the embodiments of the present application.
  • the computing device 500 includes an input device 501, an input interface 502, a central processing unit 503, a memory 504, an output interface 505, and an output device 506.
  • the input interface 502, the central processing unit 503, the memory 504, and the output interface 505 are connected to each other through the bus 510, and the input device 501 and the output device 506 are connected to the bus 510 through the input interface 502 and the output interface 505, respectively, and then connected to the computing device 500.
  • the other components are connected.
  • the input device 501 receives input information from the outside, and transmits the input information to the central processing unit 503 through the input interface 502; the central processing unit 503 processes the input information based on the computer executable instructions stored in the memory 504 to generate output Information, the output information is temporarily or permanently stored in the memory 504, and then the output information is transmitted to the output device 506 through the output interface 505; the output device 506 outputs the output information to the outside of the computing device 500 for use by the user.
  • the central processing unit 503 may include, but is not limited to, a general-purpose processor, a dedicated processor, a special application processor, or a field programmable logic circuit.
  • the memory 504 may include read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical, or other physical/tangible devices. Memory storage device.
  • the central processing unit 503 can implement the session control processing method provided in the first aspect or the second aspect of the embodiments of the present application when executing the computer-executable instructions stored in the memory 504.
  • the embodiments of the present application also provide a computer-readable storage medium, and examples of the computer-readable storage medium include a non-transitory computer-readable storage medium.
  • the computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by a processor, the session control processing method provided in the first aspect or the second aspect of the embodiments of the present application is implemented.
  • the functional blocks shown in the above-mentioned structural block diagram can be implemented as hardware, software, firmware, or a combination thereof.
  • it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, and so on.
  • ASIC application specific integrated circuit
  • the elements of this application are programs or code segments used to perform required tasks.
  • the program or code segment may be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link through a data signal carried in a carrier wave.
  • "Machine-readable medium" may include any medium that can store or transmit information.
  • machine-readable media examples include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, and so on.
  • the code segment can be downloaded via a computer network such as the Internet, an intranet, and so on.

Landscapes

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

Abstract

本申请实施例公开了一种会话控制处理方法、装置、设备及介质。应用于服务器的会话控制处理方法包括:接收终端设备发送的业务请求;生成与业务请求对应的目标会话控制;根据目标会话控制,删除会话控制。本申请实施例的会话控制处理方法、装置、设备及介质,能够减少存储空间的占用。

Description

会话控制处理方法、装置、设备及介质
相关申请的交叉引用
本申请要求享有于2019年10月29日提交的名称为“会话控制处理方法、装置、设备及介质”的中国专利申请201911039151.7的优先权,该申请的全部内容通过引用并入本文中。
技术领域
本申请涉及计算机网络技术领域,尤其涉及一种会话控制处理方法、装置、设备及介质。
背景技术
当客户端向服务器发起一个业务请求时,服务器会立即生成一个会话控制(session)应答给客户端,并对会话控制进行存储。
针对同一客户端,服务器会存储多个会话控制,会话控制占用存储空间较多。
发明内容
本申请实施例提供一种会话控制处理方法、装置、设备及介质,能够减少存储空间的占用。
第一方面,本申请实施例提供了一种会话控制处理方法,包括:
接收终端设备发送的业务请求;
生成与业务请求对应的目标会话控制;
根据目标会话控制,删除会话控制。
第二方面,本申请实施例提供了一种会话控制处理方法,包括:
向服务器发送业务请求,以用于服务器生成与业务请求对应的目标会话控制,根据目标会话控制,删除会话控制。
第三方面,本申请实施例提供了一种会话控制处理装置,包括:
第一接收模块,用于接收终端设备发送的业务请求;
生成模块,用于生成与业务请求对应的目标会话控制;
第一删除模块,用于根据目标会话控制,删除会话控制。
第四方面,本申请实施例提供了一种会话控制处理装置,包括:
第三发送模块,用于向服务器发送业务请求,以用于服务器生成与业务请求对应的目标会话控制,根据目标会话控制,删除会话控制。
第五方面,本申请实施例提供一种会话控制处理设备,包括:处理器、存储器及存储在存储器上并可在处理器上运行的计算机程序,计算机程序被处理器执行时实现本申请实施例第一方面或第二方面提供的会话控制处理方法。
第六方面,本申请实施例提供一种计算机可读存储介质,计算机可读存储介质上存储计算机程序,计算机程序被处理器执行时实现本申请实施例第一方面或第二方面提供的会话控制处理方法。
本申请实施例的会话控制处理方法、装置、设备及介质,服务器在生成新的会话控制后,即可对之前的会话控制进行删除处理,能够减少存储空间的占用。
附图说明
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例中所需要使用的附图作简单地介绍,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1示出了本申请实施例第一方面提供的会话控制处理方法的流程示意图;
图2示出了会话控制处理的第一种过程示意图;
图3示出了会话控制处理的第二种过程示意图;
图4示出了本申请实施例第三方面提供的会话控制处理装置的结构示意图;
图5示出了能够实现根据本申请实施例的会话控制处理方法及装置的 计算设备的示例性硬件架构的结构图。
具体实施方式
为了使本申请的发明目的、技术方案和有益技术效果更加清晰,以下结合具体实施例对本申请进行详细说明。应当理解的是,本说明书中描述的实施例仅仅是为了解释本申请,并非为了限定本申请。
为了简便,本文仅明确地公开了一些数值范围。然而,任意下限可以与任何上限组合形成未明确记载的范围;以及任意下限可以与其它下限组合形成未明确记载的范围,同样任意上限可以与任意其它上限组合形成未明确记载的范围。此外,尽管未明确记载,但是范围端点间的每个点或单个数值都包含在该范围内。因而,每个点或单个数值可以作为自身的下限或上限与任意其它点或单个数值组合或与其它下限或上限组合形成未明确记载的范围。
在本文的描述中,需要说明的是,除非另有说明,“以上”、“以下”为包含本数,“一种或几种”中“几种”的含义是两种或两种以上。
本申请的上述发明内容并不意欲描述本申请中的每个公开的实施方式或每种实现方式。如下描述更具体地举例说明示例性实施方式。在整篇申请中的多处,通过一系列实施例提供了指导,这些实施例可以以各种组合形式使用。在各个实例中,列举仅作为代表性组,不应解释为穷举。
为了解决相关技术问题,本申请实施例提供一种会话控制处理方法、装置、设备及存储介质。下面首先对本申请实施例提供的会话控制处理方法进行说明。
图1示出了本申请实施例第一方面提供的会话控制处理方法的流程示意图。本申请实施例第一方面提供的会话控制处理方法可以应用于服务器。本申请实施例第一方面提供的会话控制处理方法可以包括:
S101:接收终端设备发送的业务请求。
S102:生成与业务请求对应的目标会话控制。
S103:根据目标会话控制,删除会话控制。
本申请实施例的会话控制处理方法,服务器在生成新的会话控制后, 即可对会话控制进行删除处理,能够减少存储空间的占用。
本申请实施例并不对生成会话控制所采用的方式进行限定,任何可用的会话控制生成方式均可应用于本申请实施例中。
在本申请的一个实施例中,在根据目标会话控制,删除会话控制时,可以根据终端设备的终端设备信息,确定终端设备的设备指纹;从与设备指纹具有映射关系的会话控制中确定待保留会话控制;删除与设备指纹具有映射关系的会话控制中除待保留会话控制之外的会话控制。
此时,终端设备可以将其终端设备信息发送给服务器,服务器根据终端设备的终端设备信息,确定终端设备的设备指纹。
其中,终端设备信息可以包括:设备的名称、型号、形状、颜色和功能等。设备指纹指可以用于唯一标识出设备的设备特征或者独特的设备标识。
本申请实施例并不对根据终端设备的终端设备信息,确定终端设备的设备指纹所采用的方式进行限定,任何可用的方式均可以应用于本申请实施例中。
在本申请的一个实施例中,在确定出终端设备的设备指纹后,可以存储目标会话控制与设备指纹的映射关系。会话控制与设备指纹的映射关系如表1所示。
表1
会话控制 设备指纹
会话控制1 设备指纹1
会话控制2 设备指纹3
会话控制3 设备指纹2
会话控制4 设备指纹3
会话控制5 设备指纹1
会话控制6 设备指纹2
会话控制7 设备指纹1
会话控制8 设备指纹3
会话控制9 设备指纹1
在本申请的一个实施例中,可以存储目标会话控制与设备指纹的正向映射关系和反向映射关系。其中,正向映射关系指以会话控制为主键存储的会话控制与设备指纹的映射关系,反向映射关系指以设备指纹为主键存储的会话控制与设备指纹的映射关系。
基于表1,会话控制与设备指纹的正向映射关系如表2所示。
表2
会话控制 设备指纹
会话控制1 设备指纹1
会话控制2 设备指纹3
会话控制3 设备指纹2
会话控制4 设备指纹3
会话控制5 设备指纹1
会话控制6 设备指纹2
会话控制7 设备指纹1
会话控制8 设备指纹3
会话控制9 设备指纹1
基于表1,会话控制与设备指纹的反向映射关系如表3所示。
表3
Figure PCTCN2020103104-appb-000001
在本申请的一个实施例中,在存储会话控制与设备指纹的映射关系 (包括正向映射关系和反向映射关系)时,还可以存储会话控制的生成时间。
以存储会话控制与设备指纹的反向映射关系为例,会话控制与设备指纹的反向映射关系如表4所示。
表4
Figure PCTCN2020103104-appb-000002
当确定出终端设备的设备指纹后,可以从与设备指纹具有映射关系的会话控制中确定待保留会话控制,删除与设备指纹具有映射关系的会话控制中除待保留会话控制之外的会话控制。
示例性的,假设确定出终端设备的设备指纹为设备指纹3,则从与设备指纹3具有映射关系的会话控制(会话控制2、会话控制4和会话控制8)中确定待保留会话控制。假设确定出的待保留会话为会话控制2和会话控制8,则删除会话控制4。
删除会话控制4后的会话控制与设备指纹的正向映射关系如表5所示。
表5
会话控制 设备指纹
会话控制1 设备指纹1
会话控制2 设备指纹3
会话控制3 设备指纹2
会话控制5 设备指纹1
会话控制6 设备指纹2
会话控制7 设备指纹1
会话控制8 设备指纹3
会话控制9 设备指纹1
删除会话控制4后的会话控制与设备指纹的反向映射关系如表6所示。
表6
Figure PCTCN2020103104-appb-000003
在本申请的一个实施例中,在确定待保留会话控制时,可以从与设备指纹具有映射关系的会话控制中选取第一预设数量的会话控制;将第一预设数量的会话控制,确定为待保留会话控制。
示例性的,假设确定出终端设备的设备指纹为设备指纹3,第一预设数量为2。则从与设备指纹3具有映射关系的会话控制(会话控制2、会话控制4和会话控制8)中选择两个会话控制。假设所选择的会话控制为会话控制4和会话控制8,则将会话控制4和会话控制8确定为待保留会 话控制。
在本申请的一个实施例中,为了保证待保留会话控制中必然有目标会话控制时,可以从与设备指纹具有映射关系的会话控制中除目标会话控制之外的会话控制中选取第一预设数量减1个会话控制;将目标会话控制和所选取的会话控制,确定为待保留会话控制。
示例性的,假设目标会话控制为会话控制8,确定出终端设备的设备指纹为设备指纹3,第一预设数量为2。则从与设备指纹3具有映射关系的会话控制中除会话控制8之外的会话控制2和会话控制中选择一个会话控制。假设所选择的会话控制为会话控制2,则将会话控制2和会话控制8确定为待保留会话控制。
在本申请的一个实施例中,在确定待保留会话控制时,可以从与设备指纹具有映射关系的会话控制中,确定距离生成目标会话控制的时间最短的第二预设数量的会话控制;将第二预设数量的会话控制,确定为待保留会话控制。
示例性的,假设目标会话控制为会话控制8,确定出终端设备的设备指纹为设备指纹3,第二预设数量为2。会话控制2对应的时间7早于会话控制8对应的时间9,而会话控制4对应的时间8又早于会话控制2对应的时间7。则从与设备指纹3具有映射关系的会话控制(会话控制2、会话控制4和会话控制8)中,确定出距离生成会话控制8的时间最短9的两个会话控制为会话控制8和会话控制2,则将会话控制2和会话控制8确定为待保留会话控制。
通过本申请实施例提供的会话控制处理方法,针对同一终端设备,服务器仅存储待保留会话控制,除待保留会话控制之外的会话控制均被删除,能够减少存储空间的占用。
在本申请的一个实施例中,还可以设置映射关系的有效时长;当映射关系的存储时长达到有效时长时,删除映射关系。
通过本申请实施例提供的会话控制处理方法,能够删除长期未发送业务请求的终端设备对应的会话控制,能够减少存储空间的占用。
在本申请的一个实施例中,服务器在生成目标会话控制后,可以将目 标会话控制发送给终端设备。终端设备在接收到目标会话控制后,可以向服务器发送包括目标会话控制的前一会话控制的第一确认消息。服务器在接收到第一确认消息后,查找与前一会话控制具有映射关系的设备指纹;删除与设备指纹具有映射关系的会话控制中前一会话控制之前的会话控制(即删除与设备指纹具有映射关系的会话控制中除目标会话控制和目标会话控制的前一会话控制之外的其他会话控制)。
示例性的,假设目标会话控制为会话控制8,会话控制8的前一会话控制为会话控制2,会话控制2的前一会话为会话控制4。
终端设备向服务器发送包括会话控制2的第一确认消息。
服务器查找到与会话控制2具有映射关系的设备指纹为设备指纹3。与设备指纹3具有映射关系有会话控制2、会话控制4和会话控制8,其中,会话控制2对应的时间7早于会话控制8对应的时间9,而会话控制4对应的时间8又早于会话控制2对应的时间7。则删除会话控制4。
通过本申请实施例,针对同一终端设备,服务器仅存储两个会话控制,其余会话控制均被删除,能够减少存储空间的占用。
在本申请的一个实施例中,终端设备在接收到目标会话控制后,还可以向服务器发送包括目标会话控制的第二确认消息。服务器在接收到第二确认消息后,查找与目标会话控制具有映射关系的设备指纹;删除与设备指纹具有映射关系的会话控制中目标会话控制之前的会话控制(即删除与设备指纹具有映射关系的会话控制中除目标会话控制之外的其他会话控制)。
示例性的,假设目标会话控制为会话控制8。
终端设备向服务器发送包括会话控制8的第二确认消息。
服务器查找到与会话控制8具有映射关系的设备指纹为设备指纹3。与设备指纹3具有映射关系有会话控制2、会话控制4和会话控制8,其中,会话控制2对应的时间7早于会话控制8对应的时间9,而会话控制4对应的时间8又早于会话控制2对应的时间7。则删除会话控制2和会话控制4。
通过本申请实施例,针对同一终端设备,服务器仅存储一个会话控制, 其余会话控制均被删除,能够减少存储空间的占用。
图2示出了会话控制处理的第一种过程示意图。
终端设备向服务器发送业务请求。
服务器在接收到业务请求后,生成与该业务请求对应的目标会话控制;向终端设备反馈目标会话控制;根据终端设备的终端设备信息;确定终端设备的设备指纹;存储设备指纹与终端设备信息的对应关系,存储目标会话控制与设备指纹的正向映射关系,以及存储目标会话控制与设备指纹的反向映射关系;然后,从与设备指纹具有映射关系的会话控制中确定待保留会话控制;删除与设备指纹具有映射关系的会话控制中除待保留会话控制之外的会话控制。
终端设备在接收到目标会话控制后,存储目标会话控制,并向服务器发送包括目标会话控制的前一会话控制的第一确认信息。
服务器在接收到第一确认信息后,查找与前一会话控制具有映射关系的设备指纹;删除与设备指纹具有映射关系的会话控制中前一会话控制之前的会话控制。
通过本申请实施例,若服务器由于各种原因(比如网络原因、终端设备故障原因)等,未接收到终端设备发送的第一确认信息,则可以服务器仅存储待保留会话控制,除待保留会话控制之外的会话控制均被删除,能够减少存储空间的占用。若服务器能够接收到终端设备发送的第一确认信息,则可以服务器仅存储两个会话控制(目标会话控制和目标会话控制的前一会话控制),除目标会话控制和目标会话控制之外的会话控制均被删除,能够减少存储空间的占用。
图3示出了会话控制处理的第二种过程示意图。
终端设备向服务器发送业务请求。
服务器在接收到业务请求后,生成与该业务请求对应的目标会话控制;向终端设备反馈目标会话控制;根据终端设备的终端设备信息;确定终端设备的设备指纹;存储设备指纹与终端设备信息的对应关系,存储目标会话控制与设备指纹的正向映射关系,以及存储目标会话控制与设备指纹的反向映射关系;然后,从与设备指纹具有映射关系的会话控制中确定待保 留会话控制;删除与设备指纹具有映射关系的会话控制中除待保留会话控制之外的会话控制。
终端设备在接收到目标会话控制后,存储目标会话控制,并向服务器发送包括目标会话控制的第二确认信息。
服务器在接收到第二确认信息后,查找与目标会话控制具有映射关系的设备指纹;删除与设备指纹具有映射关系的会话控制中目标会话控制之前的会话控制。
通过本申请实施例,若服务器由于各种原因(比如网络原因、终端设备故障原因)等,未接收到终端设备发送的第二确认信息,则可以服务器仅存储待保留会话控制,除待保留会话控制之外的会话控制均被删除,能够减少存储空间的占用。若服务器能够接收到终端设备发送的第二确认信息,则可以服务器仅存储一个会话控制(目标会话控制),除目标会话控制之外的会话控制均被删除,能够减少存储空间的占用。
当基于待保留会话控制和第一确认信息,对会话信息进行删除处理时,通过目标会话控制的前一会话控制,必然能够查找到与前一会话控制具有映射关系的设备指纹,进而可以对会话信息进行删除处理。因此,基于待保留会话控制对会话信息进行删除处理和基于第一确认信息对会话信息进行删除处理可以以异步方式进行执行。
当基于待保留会话控制和第二确认信息,对会话信息进行删除处理时,通过目标会话控制,有可能查找到不到与目标会话控制具有映射关系的设备指纹。比如,服务器还没有确定出设备指纹,进而也不可能存储目标会话控制与设备指纹的映射关系;再比如,服务器虽然确定出设备指纹,但还没存储目标会话控制与设备指纹的映射关系。此时,若基于待保留会话控制对会话信息进行删除处理和基于第一确认信息对会话信息进行删除处理以异步方式进行执行,则有可能因为没有查找与目标会话控制具有映射关系的设备指纹而出现错误。基于此,基于待保留会话控制对会话信息进行删除处理和基于第一确认信息对会话信息进行删除处理可以以同步方式进行执行。具体的,服务器在存储目标会话控制与设备指纹的映射关系后,可以向终端设备发送响应消息,该响应消息用于告知终端设备“服务器已 存储目标会话控制与设备指纹的映射关系”。终端设备在接收到该响应消息后,再向服务器发送向服务器发送包括目标会话控制的第二确认信息。服务器在接收到第二确认信息后,查找与目标会话控制具有映射关系的设备指纹;删除与设备指纹具有映射关系的会话控制中目标会话控制之前的会话控制。
在本申请的一个实施例中,在确定出终端设备的设备指纹后,可以存储设备指纹与终端设备信息的对应关系。设备指纹与终端设备信息的对应关系如表7所示。
表7
设备指纹 终端设备信息
设备指纹1 终端设备信息1
设备指纹2 终端设备信息2
设备指纹3 终端设备信息3
设备指纹4 终端设备信息4
在本申请的一个实施例中,终端设备还可以向服务器发送包括目标会话控制的终端设备信息查询请求。服务器在接收到终端设备信息查询请求后,查找与目标会话控制具有映射关系的设备指纹;查找与所查找到的设备指纹具有对应关系的终端设备信息;将所查找到的终端设备信息反馈给终端设备。
示例性的,假设终端设备向服务器发送包括会话控制8的终端设备信息查询请求。服务器查找与会话控制8具有映射关系的设备指纹为设备指纹3,进而查找到与设备指纹3具有对应关系的终端设备信息3,将终端设备信息3反馈给终端设备。终端设备在接收到终端设备信息3后,可以利用终端设备信息3对终端设备进行身份验证或者对业务进行风险验证等。
在本申请的一个实施例中,服务器在生成目标会话控制后,可以将目标会话控制发送给终端设备。终端设备在接收到目标会话控制后,可以存储目标会话控制。
在本申请的一个实施例中,终端设备可以将目标会话控制存储在本地文件中。相比于相关技术终端设备将会话控制存储在内存中,能够防止因 终端设备的内存被清理导致的会话控制丢失。
在本申请的一个实施例中,终端设备还可以将存储于本地文件中除目标会话控制之外的会话控制删除,以节省存储空间的占用。
本申请实施例第二方面还提供一种会话控制处理方法。本申请实施例第二方面提供的会话控制处理方法可以应用于终端设备。本申请实施例第二方面提供的会话控制处理方法可以包括:
向服务器发送业务请求,以用于服务器生成与业务请求对应的目标会话控制;根据目标会话控制,删除会话控制。
在本申请的一个实施例中,本申请实施例第二方面提供的会话控制处理方法,还可以包括:
接收服务器发送的目标会话控制;
存储目标会话控制。
在本申请的一个实施例中,存储目标会话控制,可以包括:
将目标会话控制存储于本地文件中。
在本申请的一个实施例中,本申请实施例第二方面提供的会话控制处理方法,还可以包括:
删除存储于本地文件中除目标会话控制之外的会话控制。
在本申请的一个实施例中,本申请实施例第二方面提供的会话控制处理方法,还可以包括:
向服务器发送包括目标会话控制的前一会话控制的第一确认消息,以用于服务器根据前一会话控制对会话控制进行删除处理。
在本申请的一个实施例中,本申请实施例第二方面提供的会话控制处理方法,还可以包括:
向服务器发送包括目标会话控制的第二确认消息,以用于服务器根据目标会话控制对会话控制进行删除处理。
在本申请的一个实施例中,本申请实施例第二方面提供的会话控制处理方法,还可以包括:
向服务器发送包括目标会话控制的终端设备信息查询请求,以用于服务器基于目标会话控制查找终端设备信息;
接收服务器查找到的终端设备信息。
本申请实施例还提供一种会话控制处理装置。图4示出了本申请实施例第三方面提供的会话控制处理装置的结构示意图。本申请实施例第三方面提供的会话控制处理装置可以应用于服务器。本申请实施例第三方面提供的会话控制处理装置400可以包括:
第一接收模块401,用于接收终端设备发送的业务请求。
生成模块402,用于生成与业务请求对应的目标会话控制。
第一删除模块403,用于根据目标会话控制,删除会话控制。
在本申请的一个实施例中,第一删除模块403,可以包括:
第一确定单元,根据终端设备的终端设备信息,确定终端设备的设备指纹;
第二确定单元,根据从与设备指纹具有映射关系的会话控制中确定待保留会话控制;
删除单元,用于删除与设备指纹具有映射关系的会话控制中除待保留会话控制之外的会话控制。
在本申请的一个实施例中,第二确定单元,具体可以用于:
从与设备指纹具有映射关系的会话控制中选取第一预设数量的会话控制;
将第一预设数量的会话控制,确定为待保留会话控制。
在本申请的一个实施例中,第二确定单元,具体可以用于:
从与设备指纹具有映射关系的会话控制中,确定距离生成目标会话控制的时间最短的第二预设数量的会话控制;
将第二预设数量的会话控制,确定为待保留会话控制。
在本申请的一个实施例中,本申请实施例第三方面提供的会话控制处理装置,还可以包括:
第一存储模块,用于存储目标会话控制与设备指纹的映射关系。
在本申请的一个实施例中,第一存储模块,具体可以用于:
存储目标会话控制与设备指纹的正向映射关系和反向映射关系。
在本申请的一个实施例中,本申请实施例第三方面提供的会话控制处 理装置,还可以包括:
设置模块,用于设置映射关系的有效时长;
第二删除模块,用于当映射关系的存储时长达到有效时长时,删除映射关系。
在本申请的一个实施例中,本申请实施例第三方面提供的会话控制处理装置,还可以包括:
第二存储模块,用于存储设备指纹与终端设备信息的对应关系。
在本申请的一个实施例中,第一删除模块403,具体可以用于:
接收终端设备发送的第一确认消息,第一确认消息包括目标会话控制的前一会话控制;
查找与前一会话控制具有映射关系的设备指纹;
删除与设备指纹具有映射关系的会话控制中前一会话控制。
在本申请的一个实施例中,第一删除模块403,具体可以用于:
接收终端设备发送的第二确认消息,第二确认消息包括目标会话控制;
查找与目标会话控制具有映射关系的设备指纹;
删除与设备指纹具有映射关系的会话控制中目标会话控制。
在本申请的一个实施例中,本申请实施例第三方面提供的会话控制处理装置,还可以包括:
第一发送模块,用于将目标会话控制发送给终端设备。
在本申请的一个实施例中,本申请实施例第三方面提供的会话控制处理装置,还可以包括:
第二接收模块,用于接收终端设备发送的终端设备信息查询请求,终端设备信息查询请求中包括目标会话控制;
查找模块,用于查找与目标会话控制具有映射关系的设备指纹,查找与所查找到的设备指纹具有对应关系的终端设备信息;
第二发送模块,用于将所查找到的终端设备信息反馈给终端设备。
本申请实施例第四方面提供一种会话控制处理装置。本申请实施例第四方面提供的会话控制处理装置可以应用于终端设备。本申请实施例第四方面提供的会话控制处理装置可以包括:
第三发送模块,用于向服务器发送业务请求,以用于服务器生成与业务请求对应的目标会话控制,根据目标会话控制,删除会话控制。
在本申请的一个实施例中,本申请实施例第四方面提供的会话控制处理装置,还可以包括:
第三接收模块,用于接收服务器发送的目标会话控制;
第三存储模块,用于存储目标会话控制。
在本申请的一个实施例中,第三存储模块,具体可以用于:
将目标会话控制存储于本地文件中。
在本申请的一个实施例中,本申请实施例第四方面提供的会话控制处理装置,还可以包括:
第三删除模块,用于删除存储于本地文件中除目标会话控制之外的会话控制。
在本申请的一个实施例中,本申请实施例第四方面提供的会话控制处理装置,还可以包括:
第四发送模块,用于向服务器发送包括目标会话控制的前一会话控制的第一确认消息,以用于服务器根据前一会话控制对会话控制进行删除处理。
在本申请的一个实施例中,本申请实施例第四方面提供的会话控制处理装置,还可以包括:
第五发送模块,用于向服务器发送包括目标会话控制的第二确认消息,以用于服务器根据目标会话控制对会话控制进行删除处理。
在本申请的一个实施例中,本申请实施例第四方面提供的会话控制处理装置,还可以包括:
第六发送模块,用于向服务器发送包括目标会话控制的终端设备信息查询请求,以用于服务器基于目标会话控制查找终端设备信息;
第四接收模块,用于接收服务器查找到的终端设备信息。
本申请实施例还提供一种会话控制处理设备,该会话控制处理设备可以包括:存储有计算机可执行指令的存储器;以及处理器,该处理器在执行计算机可执行指令时可以实现本申请实施例第一方面或第二方面提供的 会话控制处理方法。
图5示出了能够实现根据本申请实施例的会话控制处理方法及装置的计算设备的示例性硬件架构的结构图。如图5所示,计算设备500包括输入设备501、输入接口502、中央处理器503、存储器504、输出接口505、以及输出设备506。其中,输入接口502、中央处理器503、存储器504、以及输出接口505通过总线510相互连接,输入设备501和输出设备506分别通过输入接口502和输出接口505与总线510连接,进而与计算设备500的其他组件连接。
具体地,输入设备501接收来自外部的输入信息,并通过输入接口502将输入信息传送到中央处理器503;中央处理器503基于存储器504中存储的计算机可执行指令对输入信息进行处理以生成输出信息,将输出信息临时或者永久地存储在存储器504中,然后通过输出接口505将输出信息传送到输出设备506;输出设备506将输出信息输出到计算设备500的外部供用户使用。
中央处理器503可以包括但不限于通用处理器、专用处理器、特殊应用处理器或者现场可编程逻辑电路。
存储器504可以包括只读存储器(Read-Only Memory,ROM),随机存取存储器(Random Access Memory,RAM),磁盘存储介质设备,光存储介质设备,闪存设备,电气、光学或其他物理/有形的存储器存储设备。
中央处理器503在执行存储在存储器504中的计算机可执行指令时可以实现本申请实施例第一方面或第二方面提供的会话控制处理方法。
本申请实施例还提供一种计算机可读存储介质,计算机可读存储介质的示例包括非暂态计算机可读存储介质。该计算机可读存储介质上存储有计算机程序指令;该计算机程序指令被处理器执行时实现本申请实施例第一方面或第二方面提供的会话控制处理方法。
需要明确的是,本申请并不局限于上文所描述并在图中示出的特定配置和处理。为了简明起见,这里省略了对已知方法的详细描述。在上述实施例中,描述和示出了若干具体的步骤作为示例。但是,本申请的方法过程并不限于所描述和示出的具体步骤,本领域的技术人员可以在领会本申 请的精神后,作出各种改变、修改和添加,或者改变步骤之间的顺序。
以上所述的结构框图中所示的功能块可以实现为硬件、软件、固件或者它们的组合。当以硬件方式实现时,其可以例如是电子电路、专用集成电路(ASIC)、适当的固件、插件、功能卡等等。当以软件方式实现时,本申请的元素是被用于执行所需任务的程序或者代码段。程序或者代码段可以存储在机器可读介质中,或者通过载波中携带的数据信号在传输介质或者通信链路上传送。“机器可读介质”可以包括能够存储或传输信息的任何介质。机器可读介质的例子包括电子电路、半导体存储器设备、ROM、闪存、可擦除ROM(EROM)、软盘、CD-ROM、光盘、硬盘、光纤介质、射频(RF)链路,等等。代码段可以经由诸如因特网、内联网等的计算机网络被下载。
还需要说明的是,本申请中提及的示例性实施例,基于一系列的步骤或者装置描述一些方法或系统。但是,本申请不局限于上述步骤的顺序,也就是说,可以按照实施例中提及的顺序执行步骤,也可以不同于实施例中的顺序,或者若干步骤同时执行。
以上所述,仅为本申请的具体实施方式,所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的系统、模块和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。应理解,本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。

Claims (23)

  1. 一种会话控制处理方法,包括:
    接收终端设备发送的业务请求;
    生成与所述业务请求对应的目标会话控制;
    根据所述目标会话控制,删除会话控制。
  2. 根据权利要求1所述的方法,其中,所述根据所述目标会话控制,删除会话控制,包括:
    根据所述终端设备的终端设备信息,确定所述终端设备的设备指纹;
    从与所述设备指纹具有映射关系的会话控制中确定待保留会话控制;
    删除与所述设备指纹具有映射关系的会话控制中除所述待保留会话控制之外的会话控制。
  3. 根据权利要求2所述的方法,其中,所述从与所述设备指纹具有映射关系的会话控制中确定待保留会话控制,包括:
    从与所述设备指纹具有映射关系的会话控制中选取第一预设数量的会话控制;
    将所述第一预设数量的会话控制,确定为待保留会话控制。
  4. 根据权利要求2所述的方法,其中,所述从与所述设备指纹具有映射关系的会话控制中确定待保留会话控制,包括:
    从与所述设备指纹具有映射关系的会话控制中,确定距离生成所述目标会话控制的时间最短的第二预设数量的会话控制;
    将所述第二预设数量的会话控制,确定为待保留会话控制。
  5. 根据权利要求2所述的方法,其中,所述方法还包括:
    存储所述目标会话控制与所述设备指纹的映射关系。
  6. 根据权利要求5所述的方法,其中,所述存储所述目标会话控制与所述设备指纹的映射关系,包括:
    存储所述目标会话控制与所述设备指纹的正向映射关系和反向映射关系。
  7. 根据权利要求6所述的方法,其中,所述方法还包括:
    设置所述映射关系的有效时长;
    当所述映射关系的存储时长达到所述有效时长时,删除所述映射关系。
  8. 根据权利要求2所述的方法,其中,所述方法还包括:
    存储所述设备指纹与所述终端设备信息的对应关系。
  9. 根据权利要求1所述的方法,其中,所述根据所述目标会话控制,删除会话控制,包括:
    接收所述终端设备发送的第一确认消息,所述第一确认消息包括所述目标会话控制的前一会话控制;
    查找与所述前一会话控制具有映射关系的设备指纹;
    删除与所述设备指纹具有映射关系的会话控制中所述前一会话控制之前的会话控制。
  10. 根据权利要求1所述的方法,其中,所述根据所述目标会话控制,删除会话控制,包括:
    接收所述终端设备发送的第二确认消息,所述第二确认消息包括所述目标会话控制;
    查找与所述目标会话控制具有映射关系的设备指纹;
    删除与所述设备指纹具有映射关系的会话控制中所述目标会话控制之前的会话控制。
  11. 根据权利要求1至10任一项所述的方法,其中,所述方法还包括:
    将所述目标会话控制发送给所述终端设备。
  12. 根据权利要求11所述的方法,其中,所述方法还包括:
    接收所述终端设备发送的终端设备信息查询请求,所述终端设备信息查询请求中包括所述目标会话控制;
    查找与所述目标会话控制具有映射关系的设备指纹;
    查找与所查找到的设备指纹具有对应关系的终端设备信息;
    将所查找到的终端设备信息反馈给所述终端设备。
  13. 一种会话控制处理方法,包括:
    向服务器发送业务请求,以用于所述服务器生成与所述业务请求对应的目标会话控制,根据所述目标会话控制,删除会话控制。
  14. 根据权利要求13所述的方法,其中,所述方法还包括:
    接收所述服务器发送的目标会话控制;
    存储所述目标会话控制。
  15. 根据权利要求14所述的方法,其中,所述存储所述目标会话控制,包括:
    将所述目标会话控制存储于本地文件中。
  16. 根据权利要求15所述的方法,其中,所述方法还包括:
    删除存储于所述本地文件中除所述目标会话控制之外的会话控制。
  17. 根据权利要求14所述的方法,其中,所述方法还包括:
    向所述服务器发送包括所述目标会话控制的前一会话控制的第一确认消息,以用于所述服务器根据所述前一会话控制对会话控制进行删除处理。
  18. 根据权利要求14所述的方法,其中,所述方法还包括:
    向所述服务器发送包括所述目标会话控制的第二确认消息,以用于所述服务器根据所述目标会话控制对会话控制进行删除处理。
  19. 根据权利要求14所述的方法,其中,所述方法还包括:
    向所述服务器发送包括所述目标会话控制的终端设备信息查询请求,以用于所述服务器基于所述目标会话控制查找终端设备信息;
    接收所述服务器查找到的终端设备信息。
  20. 一种会话控制处理装置,包括:
    第一接收模块,用于接收终端设备发送的业务请求;
    生成模块,用于生成与所述业务请求对应的目标会话控制;
    第一删除模块,用于根据所述目标会话控制,删除会话控制。
  21. 一种会话控制处理装置,包括:
    第三发送模块,用于向服务器发送业务请求,以用于服务器生成与所述业务请求对应的目标会话控制,根据所述目标会话控制,删除会话控制。
  22. 一种会话控制处理设备,包括:处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至19任意一项所述的会话控制处理方法。
  23. 一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至19任意一项所述的会话控制处理方法。
PCT/CN2020/103104 2019-10-29 2020-07-20 会话控制处理方法、装置、设备及介质 WO2021082538A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911039151.7A CN111225019B (zh) 2019-10-29 2019-10-29 会话控制处理方法、装置、设备及介质
CN201911039151.7 2019-10-29

Publications (1)

Publication Number Publication Date
WO2021082538A1 true WO2021082538A1 (zh) 2021-05-06

Family

ID=70832334

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/103104 WO2021082538A1 (zh) 2019-10-29 2020-07-20 会话控制处理方法、装置、设备及介质

Country Status (2)

Country Link
CN (1) CN111225019B (zh)
WO (1) WO2021082538A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111225019B (zh) * 2019-10-29 2022-06-28 中国银联股份有限公司 会话控制处理方法、装置、设备及介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1263243A2 (en) * 2001-05-31 2002-12-04 Alcatel Emergency notification and override service in a multimedia network
CN101030964A (zh) * 2006-03-03 2007-09-05 华为技术有限公司 会话控制装置和方法
US20080126485A1 (en) * 2005-06-30 2008-05-29 Huawei Technologies Co., Ltd. Method, apparatus and system for saving instant message
CN103716312A (zh) * 2013-12-24 2014-04-09 华为技术有限公司 网络会话的控制方法和装置
CN104270427A (zh) * 2014-09-18 2015-01-07 用友优普信息技术有限公司 会话控制方法与会话控制装置
CN106973062A (zh) * 2017-04-27 2017-07-21 努比亚技术有限公司 一种会话管理方法以及服务器
CN111225019A (zh) * 2019-10-29 2020-06-02 中国银联股份有限公司 会话控制处理方法、装置、设备及介质

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753604B (zh) * 2008-10-15 2013-03-20 华为终端有限公司 上报设备信息的方法、用户终端和服务器
CN101621526B (zh) * 2009-08-20 2012-09-26 杭州华三通信技术有限公司 一种防止无用连接占用系统资源的iSCSI方法及装置
US10715605B2 (en) * 2017-05-02 2020-07-14 Servicenow, Inc. System and method for limiting active sessions
CN107547503B (zh) * 2017-06-12 2020-12-25 新华三信息安全技术有限公司 一种会话表项处理方法、装置、防火墙设备及存储介质
CN108650334B (zh) * 2018-08-02 2021-03-30 东软集团股份有限公司 一种会话失效的设置方法及装置
CN110198263A (zh) * 2019-05-29 2019-09-03 北京达佳互联信息技术有限公司 会话处理方法、装置、设备及系统

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1263243A2 (en) * 2001-05-31 2002-12-04 Alcatel Emergency notification and override service in a multimedia network
US20080126485A1 (en) * 2005-06-30 2008-05-29 Huawei Technologies Co., Ltd. Method, apparatus and system for saving instant message
CN101030964A (zh) * 2006-03-03 2007-09-05 华为技术有限公司 会话控制装置和方法
CN103716312A (zh) * 2013-12-24 2014-04-09 华为技术有限公司 网络会话的控制方法和装置
CN104270427A (zh) * 2014-09-18 2015-01-07 用友优普信息技术有限公司 会话控制方法与会话控制装置
CN106973062A (zh) * 2017-04-27 2017-07-21 努比亚技术有限公司 一种会话管理方法以及服务器
CN111225019A (zh) * 2019-10-29 2020-06-02 中国银联股份有限公司 会话控制处理方法、装置、设备及介质

Also Published As

Publication number Publication date
CN111225019B (zh) 2022-06-28
CN111225019A (zh) 2020-06-02

Similar Documents

Publication Publication Date Title
WO2019100921A1 (zh) 消息推送方法及装置
JP6700308B2 (ja) データ・コピー方法及びデバイス
US7738504B1 (en) Method of establishing and updating master node in computer network
CN106991008B (zh) 一种资源锁管理方法、相关设备及系统
CN110971702A (zh) 服务调用方法、装置、计算机设备及存储介质
WO2016101759A1 (zh) 一种数据路由方法、数据管理装置和分布式存储系统
WO2021082538A1 (zh) 会话控制处理方法、装置、设备及介质
US20180349432A1 (en) Database system, transaction management node, method, and medium
CN104079623A (zh) 多级云存储同步控制方法及系统
US20160150010A1 (en) Information processing apparatus, data save method, and information processing system
CN109617817B (zh) 一种mlag组网的转发表项的生成方法及装置
US11310055B2 (en) Preventing an incorrect transmission of a copy of a record of data to a distributed ledger system
CN110955460A (zh) 一种服务进程启动方法、装置、电子设备和存储介质
US10951732B2 (en) Service processing method and device
US10185735B2 (en) Distributed database system and a non-transitory computer readable medium
US9270756B2 (en) Enhancing active link utilization in serial attached SCSI topologies
CN111008220A (zh) 数据源的动态识别方法及装置、存储介质和电子装置
CN116540938A (zh) 数据读取方法、装置、分布式存储系统、设备和存储介质
WO2022183713A1 (zh) 数据存储方法、装置、设备及存储介质
CN110020040B (zh) 查询数据的方法、装置和系统
CN112764897B (zh) 任务请求的处理方法、装置、系统及计算机可读存储介质
CN112306962B (zh) 计算机集群系统中的文件拷贝方法、装置及存储介质
CN111092949B (zh) 用于注册设备的方法及装置
US11409700B2 (en) Method, electronic device and computer program product for snapshot replication
US9838324B2 (en) Information processing system, information management apparatus, and data transfer control method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20882863

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20882863

Country of ref document: EP

Kind code of ref document: A1