Session keeping method, session keeping device, readable storage medium and electronic equipment

一种会话标识、服务端的技术,应用在通信领域,能够解决部署和维护成本高、会话保持方式无法适用使用网关的场景、内容多等问题

Active Publication Date: 2020-03-24
NEUSOFT CORP +1
View PDF11 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003]However, in the scenario where a gateway is used, both the server and the gateway need to save user information by creating a session, so the above-mentioned session retention method under the single architecture cannot be applied For scenarios where gateways are used
In related technologies, the session retention method applied in the scenario of using the gateway, one is to use additionally deployed third-party middleware to save the session, resulting in higher deployment and maintenance costs; the other is to save the session in cookie information , making the content of the cookie information more, causing network congestion, resulting in lower communication efficiency

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0071] Specific embodiments of the present disclosure will be described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described here are only used to illustrate and explain the present disclosure, and are not intended to limit the present disclosure.

[0072] In related technologies, in a scenario where a gateway is used, session persistence is mostly implemented through the following two methods. Among them, the first session maintenance method is: deploy third-party middleware (such as distributed cache Redis or database), save the gateway session and server session in the third-party middleware, and when communicating, the gateway and server Both obtain or query sessions from the third-party middleware, so as to keep the gateway session consistent with the server session. In this method, there are the following problems: In order to facilitate the gateway and server to obtain or query sessions, it is ne...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a session keeping method, a session keeping device, a readable storage medium and electronic equipment. The method is applied to a gateway, and comprises the following steps:when a first HTTP message carrying first Cookie information sent by a client is received, obtaining a gateway session ID and server session identification information from the first Cookie information; if determining that the first HTTP message is sent to the server according to the gateway session ID, determining a first target service node used for receiving the first HTTP message from a plurality of service nodes of the server; and if the identification information of the first target service node is matched with the identification information of the service node in the server session identification information, sending a first HTTP message carrying second Cookie information to the first target service node. Thus, a third-party middleware does not need to be additionally deployed to store the gateway session and the server session, and the gateway session and the server session do not need to be stored in the Cookie information, so that the problems in related technologies can be avoided, and the communication efficiency is ensured.

Description

technical field [0001] The present disclosure relates to the technical field of communications, and in particular, to a session holding method, a session holding device, a readable storage medium, and electronic equipment. Background technique [0002] In practical applications, the requests sent by the client to the server are all stateless HTTP protocols. Every time a user sends a request, it is a new link, and the server cannot identify the user. Under the monolithic architecture, in order for the server to identify the user, the server is first required to generate and store a session to record various information of the user. In order to maintain the session between the server and the client, cookie information is involved. Wherein, the Cookie information is stored in the client, and the Cookie information includes the session identifier of the server (denoted as the server session ID). When the client sends a request to the server, the Cookie information will be attac...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/08
CPCH04L67/142H04L67/146H04L67/02
Inventor 肖义陆国际纪勇黄治纲
Owner NEUSOFT CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products