Method and terminal for automatically renewing login state
A login status and automatic technology, applied in the field of data processing, can solve problems such as token invalidation, increase in the number of network requests, and increased pressure on the server, etc., and achieve the effect of low execution difficulty, high processing efficiency, and simple steps
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0069] Please refer to figure 1 , Embodiment 1 of the present invention is:
[0070] The invention provides a method for automatic renewal of a login status, which includes the following steps:
[0071] S1: When the webpage starts, obtain the token corresponding to the current account of the webpage;
[0072] Wherein, the S1 is specifically:
[0073] When the webpage starts, the token corresponding to the current account of the webpage is obtained from the cache.
[0074] S2: Determine whether the token is valid, if invalid, jump to the login page of the webpage; if valid, obtain the last renewal time of the token, and execute S3;
[0075] Wherein, the S2 is specifically:
[0076] Judging whether the token is valid, if invalid, jump to the login page of the webpage; obtain the input account number and password, and perform a login operation. If the login is successful, cache the token corresponding to the currently logged in account, and cache the current time point as Th...
Embodiment 2
[0089] The difference between the second embodiment of the present invention and the first embodiment is that all webpages in the first embodiment are replaced with apps.
Embodiment 3
[0090] Please refer to figure 2 , Embodiment three of the present invention is:
[0091] The present invention provides a terminal for automatically renewing a login status, including a memory 1, a processor 2, and a computer program stored in the memory 1 and operable on the processor 2, and the computer program is implemented when the processor executes the computer program. The following steps:
[0092] S1: When the webpage starts, obtain the token corresponding to the current account of the webpage;
[0093] Wherein, the S1 is specifically:
[0094] When the webpage starts, the token corresponding to the current account of the webpage is obtained from the cache.
[0095] S2: Determine whether the token is valid, if invalid, jump to the login page of the webpage; if valid, obtain the last renewal time of the token, and execute S3;
[0096] Wherein, the S2 is specifically:
[0097] Judging whether the token is valid, if invalid, jump to the login page of the webpage; o...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com