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

Method for preventing repeated login based on redis

A login information and login page technology, applied in the application field based on Redis caching technology, can solve the problems of high cost of distributed transaction processing technology, control of the number of user APP login devices, and reduced system speed, etc.

Inactive Publication Date: 2021-06-15
南京联创数字科技有限公司
View PDF7 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] CN201910964152 A method for controlling the number of user APP login devices based on Redis. By changing the storage and call of device information from the database to the storage and call of device information from Redis, the operating speed of the system is greatly improved, and the development time is reduced. Cost, improved system stability, can effectively control the number of user APP login devices, and solve the problem of repeatedly calling data from the database in the existing method of controlling the number of login devices, frequent reading and writing to the database will greatly reduce the system Speed, the cost of distributed transaction processing technology is very high, and dirty data is likely to be generated after the number of visits is too high, which affects the user's use of the APP, so it is impossible to effectively control the number of users' APP login devices

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 preventing repeated login based on redis
  • Method for preventing repeated login based on redis
  • Method for preventing repeated login based on redis

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] A. Execute preconditions

[0022] 1. Deploy Redis on a single node and configure the Redis configuration information;

[0023] 2. The data structure stored in the Redis cache has been determined;

[0024] figure 2 Among the overall characteristics of the architecture,

[0025] Redis is an open source (BSD licensed), written in ANSIC language, supports network, can be memory-based or persistent, log-type, Key-Value database. It supports multiple types of data structures, such as strings, hashes, lists, sets, sorted sets, etc. Redis has different levels of disk persistence built in and provides high availability through Redis sentinels and automatic partitioning. Its characteristics are memory databases with high performance and fast read and write speeds. All operations are atomic and can be persisted to disk. Based on the data structure of the Redis string type, system data storage services can be implemented.

[0026] The architecture is simple, and only one Red...

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 method for preventing repeated login based on Redis cache, and the method comprises the following steps: taking a user ID of user information as a key of Redis, taking a token of user login information as a value, namely a key value after business processing, caching the token in the Redis, setting failure time, and only retaining the user login information of the last login when the same user logs in for multiple times; when a user accesses the same website on a plurality of devices or opens a plurality of windows on the same device to access different websites or the same website and runs a verification program, judging whether the user is in a legal login state or not by verifying whether current user login information is consistent with user login information in a cache or not; and preventing the repeated login.

Description

Technical field: [0001] The invention relates to computer network technology, especially the application based on Redis cache technology. Background technique: [0002] In today's era, devices are becoming more and more intelligent and diverse. People can visit the same website on multiple devices at the same time, or open multiple windows on the same device to visit different websites or the same website. At the same time, enterprises will also meet the needs of multiple devices when developing applications. Therefore, from the perspective of security, it is necessary to prevent repeated logins. Based on the above description, Redis cache can become a method for enterprise services to prevent repeated logins by taking advantage of its fast read and write speed and data structure based on key-value pairs. [0003] CN201910964152 A method for controlling the number of user APP login devices based on Redis. By changing the storage and call of device information from the datab...

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): H04L29/06G06F21/41G06F21/46
CPCH04L63/0815G06F21/41G06F21/46
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