Obtaining method and device for context information of user

A context and user technology, applied in the Internet field, can solve problems such as inconvenient use, loss of user context information, easy omission and error in passing parameters, etc.
CN106549997AActive Publication Date: 2017-03-29ALIBABA GRP HLDG LTD

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
ALIBABA GRP HLDG LTD
Publication Date
2017-03-29

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention provides an obtaining method and device for context information of a user. The obtaining method for the user context information is applied to a distributed system. The distributed system comprises a webpage application server, remote procedure call protocol middleware and a service application server. The method comprises the steps of receiving a remote call request of the service application server; sending a context search request to a context manager, thereby enabling the context manager to obtain the context information of a current operation user from thread local of the service application server; and receiving the context information of the current operation user sent by the context manager. According to the method and the device, the context information of the current operation user can be obtained at the service application server side in the distributed system, the reusability of a service application can be increased, and the inconvenience resulting from displaying and transmitting the context information of the user in interface parameters and a data error resulting from missing parameters can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The present application relates to the field of Internet technologies, and in particular to a method and device for acquiring user context information. Background technique

[0002] Obtaining the current operating user in the system is a very common scenario. In web applications, user session information is generally saved by means of website cache (cookie) or session (session) sharing, but in a mesh distributed system , especially on the business (Service) side, the user's context information is lost.

[0003] In the prior art, when performing database (Database; hereinafter referred to as: DB) operations on the Service, the application side usually explicitly sets or transmits the context information of the operating user in the parameters of the interface, but the above method is not only repetitive and cumbersome, but also It is easy to miss and make mistakes in the process of passing parameters, which is very inconvenient to use. Contents of th...

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