Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Session management method

A management method and management module technology, applied in the field of computer program management, can solve the problems of difficult session synchronization, long session replication, manual management of session life cycle, etc., and achieve the effect of reducing load

Inactive Publication Date: 2015-12-09
JIANGSU DIGITAL DNA TECH CO LTD
View PDF5 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

And there will be a long interval in between. At this time, the session on the server is likely to have expired, causing the user to log in again and seriously affecting the experience.
Modern apps generally have an automatic re-login function, which will bring about a series of problems in session reconstruction, causing the application server of existing web applications to manually manage the session life cycle and save it persistently
As in the shopping cart example above, since the session of the app may expire, it is impossible to use the sticky session method to build the entire server cluster
[0006] The resource utilization rate of the existing cluster solution is very low, and the session information that has to be saved for a long time occupies a large amount of server-side memory of all application servers, causing the entire method to be unstable; it is difficult to synchronize the session; if session replication is used, it will be huge Increase the load of the intranet between server clusters. Generally speaking, when the number of servers exceeds 10, large-scale session replication may take a long time, which will cause huge impact and errors on the entire method business; the existing cluster solution is aimed at handheld devices The support is not good, and the application layer needs to do a series of additional processing, and it will affect the cluster solution

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Session management method
  • Session management method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] Such as figure 1 with 2 As shown, the present invention discloses a session management method, comprising the following steps:

[0029] S1. Using nginx as a reverse proxy, develop nginx plug-ins to provide the cluster front end of the application portal;

[0030] S2. The reverse proxy method based on nginx uses lvs;

[0031] S3, using redis (cluster) as unified session storage; due to the sufficient intranet bandwidth, the speed and performance of redis are much higher than that of conventional java application servers, which can improve the performance of the entire method.

[0032] S4, developing a session management module in the reverse proxy;

[0033] S5. Separate the session data from the application server; the application on the application server, for the session operation, no longer uses the session specification provided by javaservlet, but uses a package consistent with its interface, which encapsulates the session and stores it in redis The business log...

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 provides a session management method. The session management method comprises the following steps of: taking nginx as a reverse proxy, and developing a nginx plug-in to provide a cluster front end of an application portal; using Ivs (Linux Virtual Server) to build a high-availability cluster based on reverse proxy software of the nginx; using cluster redis as a uniform session for storage; developing a session management module in the reverse proxy; and stripping session data and an application server. The session management method has the advantages of high execution efficiency, high availability and low cost; through expired processing of the session and the stripping from the application server, the problem of desynchrony of the sessions among application server clusters can be effectively avoided, the application servers are independent to one another, the session synchrony is not needed, and better elasticity and performance can be provided.

Description

technical field [0001] The invention relates to a computer program management method, in particular to a session management method. Background technique [0002] For existing Internet applications based on the http protocol, a single server cannot meet business needs. Therefore, an application server cluster is required. As the business expands, the server cluster often requires scalability, that is, when the business expands, the performance of the entire method can be improved by adding servers. [0003] Due to the need to give users a unified entrance, the application server cluster needs an entrance for business distribution. Moreover, due to the stateless nature of the http protocol (the http protocol does not necessarily maintain the connection, that is, two requests from the same client are completely independent requests from the server), the server-side web business must use the session to maintain (such as the mall The goods in the shopping cart, no matter how m...

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): G06F9/46G06F9/50
Inventor 吴狄陈祥伟刘南杰
Owner JIANGSU DIGITAL DNA TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products