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

Method for cross-system forcing user offline based on shiro and redis

A forced offline and cross-system technology, applied in the field of system security, can solve problems such as insufficient efficiency, increased difficulty in development and maintenance, and high difficulty in implementation, achieving the effects of fast processing speed, wide application range, and simple operation

Inactive Publication Date: 2018-10-09
SICHUAN CHANGHONG ELECTRIC CO LTD
View PDF2 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Another forced offline operation is to record the user status in the session or in the temporary memory, and read the user's current permission operation when the user permission changes, so as to realize the offline operation. The efficiency is not high enough, and it is more difficult to realize
[0005] In addition, when the user end and the management end are in the same system, it is easier to implement forced offline, but putting the user end and the management end in one system will increase the difficulty of development and maintenance
Therefore, for systems that are developed and deployed separately on the management side and the user side, forcing users to go offline across systems has become another problem faced by current web system development

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 for cross-system forcing user offline based on shiro and redis
  • Method for cross-system forcing user offline based on shiro and redis
  • Method for cross-system forcing user offline based on shiro and redis

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0039] In order to better illustrate the technical solution of the present invention, the basic principle of using shiro and redis for authority management is firstly introduced.

[0040] The Redis database is an in-memory database. Because it uses memory instead of hard disks to store data, it has a high access speed and is suitable for use as a data repository that requires frequent access and fast query speed.

[0041] It adopts the key-value method for data storage, and the saved data is passed to the key and value. The saved data can be set with an automatic expiration time. When this time is reached, the data will be automatically deleted. If it is not expired, reset the expiration time. , the old expiration time will be overwritten, and the updated data will be passed to the key and the new value; if the data is queried through the key, the value of the value will be returned; and when the deleted data is passed to the key, the specified data can also be deleted.

[004...

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 for cross-system forcing user offline based on shiro and redis, which comprises the following steps of: S1, acquiring a user identification uid of an abnormal user through a management end system; S2, freezing the abnormal user through the management end system by utilizing the acquired user identification uid; S3, setting the user authority state with the user identification uid in the persistent storage database as a freezing state, and storing a forcing offline instruction in the Redis database; S4, , checking whether the forcing offline instruction of the user is in the Redis database when a user terminal system receives the resource access request from the user, and if so, executing the forcing off-line operation, otherwise, responding the request sentby the user. According to the invention, the operation can be directly performed at the management end system, the abnormal user of the user terminal system is offline and the account number is frozen in time, so that the system can operate more safely and reliably.

Description

technical field [0001] The invention relates to the technical field of system security, in particular to a cross-system forced user offline method based on shiro and redis. Background technique [0002] At present, almost all systems have a rights management part, which is used to provide functions of user login and judgment of login status. However, it is inevitable that there will be some malicious users who use the system abnormally, such as spreading some illegal information after logging in to the system. At this time, the website administrator needs to freeze the user's account and make it impossible to continue any operations in a timely manner. [0003] The traditional way of freezing a user on the management side is just to change the user's permission. The user must log in next time before the system reads the user permission information again, so as to capture the frozen information, so that the user no longer has the frozen permission, but This also means that ...

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): G06F21/60
CPCG06F21/604G06F2221/2141
Inventor 陈熙杨雪梅漆尧唐军
Owner SICHUAN CHANGHONG ELECTRIC CO LTD