Method and system for sharing session information

A technology of responding to information and requesting information, applied in the computer field, can solve problems such as dependence on specific servers, low efficiency, easy loss of session information sharing, etc., and achieve the effect of avoiding bandwidth consumption

Inactive Publication Date: 2014-03-26
TCL CORPORATION
View PDF4 Cites 25 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0013] In view of the deficiencies in the prior art above, the purpose of the present invention is to provide a method and system for sharing session information to solve the problems in the prior art that session information sharing is easy to lose, inefficient, and dependent on a specific server

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
  • Method and system for sharing session information
  • Method and system for sharing session information
  • Method and system for sharing session information

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] The present invention provides a method and system for sharing session information. In order to make the purpose, technical solution and effect of the present invention clearer and clearer, the present invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0051] The method and system for sharing session information provided by the present invention add a filter and a memcache server to the existing server, intercept the http request sent by the client through the filter before responding, and change the access space of the session information according to the session ID , from the application server memory to the memcache server, which changes the way of saving the existing session information, the implementation is simple and does not depend on any specific serve...

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 discloses a method and a system for sharing session information. The method comprises the steps that: A, a client initiates an http request, transfers the http request to a filter of a service end through an http server of the service end; B, the filter intercepts the http request and changes an access space of the session information based on a session ID and changes the access space from an application server memory into a memcache server; C, the filter after filtering the http request outputs the http request to an application server of the service end for service logic treatment and responds to the client. The session information is stored in the memcache server and is bound with the client through the session ID to enable each client to only have a piece of the session information and enable all the application servers to share the session information, so that the method and the system for sharing session information solve the problem that the session information cannot be shared among the servers.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and system for sharing session information. Background technique [0002] At present, most Internet web applications use session information (in web applications, it is called "session". Time, that is, the time spent by the user browsing the website; it can also be understood as the session cycle, a mechanism to maintain the user state on the server, allowing objects to be stored in the server's memory and kept until the end of the session cycle) to save User sessions share information. The client's session information is stored in a cookie (data stored on the user's local terminal in order to identify the user's identity and track session information). When a session information is enabled for the first time, a unique ID is stored in the local in the cookie. Therefore, the Session information in which the user A establishes a connection with the C server is differe...

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/06H04L29/08
Inventor 王全
Owner TCL CORPORATION
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