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

Session persistence sharing method and session persistence sharing system under multiple servers

A multi-server, shared system technology, applied in the field of session maintenance and sharing methods and systems, can solve problems affecting server performance, user session loss, bulkiness, etc., and achieve the effect of avoiding session duplication

Inactive Publication Date: 2015-12-09
北京思特奇信息技术股份有限公司
View PDF7 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] Deployment The current large-scale website architecture adopts the cluster deployment method. Although servers such as weblogic and tomcat support session replication, the implementation mechanism generally adopts the broadcast storm method, so it is relatively cumbersome and seriously affects server performance.
[0003] In terms of user perception experience, when the server goes online, the server needs to be restarted. Since the session is stored in the jvm memory of the server, restarting will cause the user session to be lost. At this time, the user may be prompted to log in again when accessing the function

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 persistence sharing method and session persistence sharing system under multiple servers
  • Session persistence sharing method and session persistence sharing system under multiple servers
  • Session persistence sharing method and session persistence sharing system under multiple servers

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0029] Such as figure 1 As shown, a method for session keeping and sharing under multiple servers includes the following steps:

[0030] When any server in the system receives the session request sent by the client for requesting to create a session, obtain the session ID according to the session request;

[0031] The server that receives the session request queries the cache server according to the session ID, and obtains a query result;

[0032] The server returns the query result to the client.

[0033] The cache server includes a first-level cache server and a second-level cache server.

[0034] The server that receives the session request queries the cache server according to the session ID, specifically:

[0035] If there is a session ID in the first-level cache server, the server obtains the session corresponding to the session ID, and returns the session to the client; otherwise, the server continues to search for the second-level cache server, if the second-level c...

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 persistence sharing method and a session persistence sharing system under multiple servers. The session persistence sharing method comprises the following steps: obtaining a session ID (Identifier) according to a session request when any server in the system receives a session establishing request sent by a client side; inquiring a cache server according to the session ID by the server receiving the session request so as to obtain an inquiry result; and returning the inquiry result to the client side by the server. According to the invention, unnecessary operations, such as session replication between web servers, are avoided; therefore, sessions can be managed in a unified manner; and session loss due to restart of the web servers cannot be worried.

Description

technical field [0001] The invention relates to a session keeping technology, in particular to a session keeping and sharing method and system under multiple servers. Background technique [0002] Deployment The current large-scale website architecture adopts the cluster deployment method. Although servers such as weblogic and tomcat support session replication, the implementation mechanism generally adopts the broadcast storm method, which is cumbersome and seriously affects server performance. [0003] In terms of user experience, the server needs to be restarted when performing online operations on the server. Since the session is stored in the jvm memory of the server, restarting will cause the user session to be lost. At this time, the user may be prompted to log in again when accessing the function. Contents of the invention [0004] The technical problem to be solved by the present invention is to provide a session keeping sharing method and system under multi-serve...

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/14H04L67/02H04L67/568
Inventor 杨春明
Owner 北京思特奇信息技术股份有限公司
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