Unlock instant, AI-driven research and patent intelligence for your innovation.

Login state synchronization method and device, equipment and storage medium

A login status and function-like technology, which is applied in the computer field, can solve the problems of complex access to login status, inability to synchronize login status, etc., and achieve the effect of reducing complexity

Pending Publication Date: 2022-07-08
WUHAN DOUYU NETWORK TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

With the increase of the number of functional modules, obtaining the login status will become very complicated, and if the login status of the page changes during the process of obtaining the login status, the login status cannot be synchronized to these functional modules in a timely and effective manner, so , how to efficiently synchronize the page login status is particularly important

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
  • Login state synchronization method and device, equipment and storage medium
  • Login state synchronization method and device, equipment and storage medium
  • Login state synchronization method and device, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0023] figure 1 This is a flowchart of a method for synchronizing a login state provided in Embodiment 1 of the present invention. This embodiment can be applied to the situation of synchronizing the login state of a page. The method can be executed by a device for synchronizing the login state. It is composed of hardware and / or software, and can generally be integrated in a device with a login state synchronization function, which can be an electronic device such as a server or a server cluster. like figure 1 As shown, the method specifically includes the following steps:

[0024] Step 110, define a synchronization class function.

[0025] Among them, the synchronization class function inherits the system base class function. The synchronization class function can be defined as DYLoginProxy class, and the system base class function can be defined as MZBaseManager. In this embodiment, the DYLoginProxy class inherits from the MZBaseManager class. MZBaseManager is a base cla...

Embodiment 2

[0060] figure 2 It is a schematic structural diagram of a login state synchronization device provided by the second embodiment of the present invention. like figure 2 As shown, the device includes:

[0061] The synchronization class function definition module 210 is used to define the synchronization class function; the synchronization class function inherits the system base class function;

[0062] The registration judgment module 220 is used to call the initialization function in the synchronization class function, and judge whether the synchronization class function is registered in the event bus;

[0063] The login status monitoring module 230 is configured to call the monitoring function to monitor the login status of the page when the synchronization class function is registered in the event bus;

[0064] The login state information broadcasting module 240 is configured to call a broadcast function to broadcast the login state information when the login state inform...

Embodiment 3

[0085] image 3 This is a schematic structural diagram of a computer device according to Embodiment 3 of the present invention. image 3 A block diagram of a computer device 312 suitable for use in implementing embodiments of the present invention is shown. image 3 The computer device 312 shown is only an example, and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention. Device 312 is typically a logged-in state synchronization-enabled computing device.

[0086] like image 3 As shown, computer device 312 takes the form of a general-purpose computing device. Components of computer device 312 may include, but are not limited to, one or more processors 316, storage 328, and a bus 318 connecting various system components including storage 328 and processor 316.

[0087] The bus 318 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics ...

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 embodiment of the invention discloses a login state synchronization method and device, equipment and a storage medium. Comprises: defining a synchronization class function; the synchronization class function inherits a system base class function; calling an initialization function in the synchronization function, and judging whether the synchronization function is registered in an event bus or not; if the synchronization function is registered to the event bus, calling a monitoring function to monitor the login state of the page; and when the login state information is monitored, calling a broadcast function to broadcast the login state information so as to synchronize the login state information. According to the login state synchronization method provided by the embodiment of the invention, when the login state of the page is monitored, the login state information is synchronized in a broadcast manner, so that the login state can be synchronized in time, and the complexity of login state synchronization is reduced.

Description

technical field [0001] Embodiments of the present invention relate to the field of computer technologies, and in particular, to a method, apparatus, device, and storage medium for synchronizing login status. Background technique [0002] At present, when loading a web page, it is implemented by calling multiple function modules. When the login status of the page changes, some functional modules need to obtain the changed login status of the page to synchronize the login status. [0003] In the related art, when the page changes, some functional modules need to dynamically obtain the login status. With the increase of the number of functional modules, obtaining the login status will become very complicated, and if the login status of the page changes during the process of obtaining the login status, the login status cannot be synchronized to these function modules in a timely and effective manner. , how to efficiently synchronize the login status of the page is particularly...

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
IPC IPC(8): G06F9/52G06F9/54G06F11/30
CPCG06F9/52G06F9/542G06F11/302
Inventor 张磊
Owner WUHAN DOUYU NETWORK TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More