Login-free opening method and device of webpage, electronic equipment and storage medium

CN122777809APending Publication Date: 2026-09-18BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510315312.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-17
Publication Date
2026-09-18

AI Technical Summary

Technical Problem

但是,相关技术容易提高登录信息泄漏的风险,从而导致用户账号被其他人盗用,降低用户登录信息的安全性

Benefits of technology

[0051] The technical solution provided in the embodiments of this disclosure can request the corresponding login-free token through the first domain name of the first webpage and generate the corresponding login-free URL. Therefore, the embodiments of this disclosure can enable the target user to open the corresponding page without entering login information, improving the user experience and ensuring the security of user login information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122777809A_ABST
    Figure CN122777809A_ABST
Patent Text Reader

Abstract

This disclosure provides a method, apparatus, electronic device, and storage medium for opening a webpage without login, relating to the field of computer technology. The method includes: responding to a target user's request to open a first webpage, determining the first domain name of the first webpage; obtaining a login-free token for the first domain name, the login-free token corresponding to the target user's user information; obtaining a login-free URL based on the first domain name and the login-free token; and opening the first webpage based on the login-free URL, wherein the login-free URL is used to verify user information and redirect to the first webpage after successful verification. This disclosure can request a corresponding login-free token through the first domain name of the first webpage and generate a corresponding login-free URL. Therefore, embodiments of this disclosure can enable target users to open corresponding pages without entering login information, improving user experience and ensuring the security of user login information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, and in particular to a method, apparatus, electronic device, and storage medium for opening web pages without login. Background Technology

[0002] With the development of computer technology, to ensure user information security, users are often required to log in before they can access a webpage. In this case, a login page can be displayed to allow users to enter their login information.

[0003] In related technologies, to improve user experience, login information can be saved when a user logs in, allowing them to revisit the webpage without logging in again. However, these technologies can increase the risk of login information leakage, potentially leading to unauthorized use of user accounts and reducing the security of user login information.

[0004] Therefore, there is an urgent need for a method to open web pages without logging in, which can improve user experience while reducing the risk of user login information being leaked and improving security.

[0005] It should be noted that the information disclosed in the background section above is only used to enhance the understanding of the background of this disclosure, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention

[0006] This disclosure provides a method, apparatus, electronic device, and storage medium for opening web pages without login, which can at least to some extent improve user experience while reducing the risk of user login information being leaked and improving security.

[0007] Other features and advantages of this disclosure will become apparent from the following detailed description, or may be learned in part from practice of this disclosure.

[0008] According to one aspect of this disclosure, a method for opening a webpage without logging in is provided, comprising:

[0009] In response to a target user's request to open a first webpage, determine the first domain name of the first webpage;

[0010] Obtain the login-free token for the first domain name, wherein the login-free token corresponds to the user information of the target user;

[0011] Based on the first domain name and the login-free token, the login-free URL (Uniform Resource Locator) is obtained;

[0012] The first webpage is opened according to the login-free URL, wherein the login-free URL is used to verify user information and redirect to the first webpage after the verification is successful.

[0013] In some exemplary embodiments, obtaining the login-free URL based on the first domain name and the login-free token includes:

[0014] The login-free URL is obtained by concatenating the user information verification domain name, the login-free token, the returned URL, and the URL of the first webpage. The user information verification domain name is used to represent the domain name corresponding to the user information verified by the system, and the returned URL is used to represent the domain name link to be returned.

[0015] In some exemplary embodiments, the method for opening web pages without login provided in this disclosure further includes:

[0016] Obtain user status data corresponding to the first domain name, which is used to describe the login status information of the target user in the first domain name;

[0017] Store the user status data corresponding to the first domain name in the cache.

[0018] In some exemplary embodiments, the first webpage is a browser webpage, and obtaining the login-free token for the first domain name includes:

[0019] Determine if this is the first time the login-free token has been obtained;

[0020] If this is not the first time the request is made, it is determined whether the request frequency condition is met at the current moment. If the request frequency condition is met, a token acquisition request is sent to the server to obtain the login-free token corresponding to the first domain name.

[0021] In some exemplary embodiments, the first webpage is an internal webpage of the client, and after storing the user state data corresponding to the first domain name in the cache, the method further includes:

[0022] In response to the target user's request to open the target webpage of the first domain, obtain the user status data corresponding to the first domain, wherein the target webpage is any webpage of the first domain;

[0023] The target webpage is opened based on the user status data corresponding to the first domain name.

[0024] In some exemplary embodiments, the user state data corresponding to the first domain name is stored in a cache, including:

[0025] The user status data corresponding to the first domain name is stored in the cache of the first process space, and the first process space corresponds to the first account of the target user.

[0026] The method for opening a webpage without logging in provided in this embodiment includes:

[0027] In response to the target user requesting to open the target webpage of the first domain based on the first account, the user status data corresponding to the first domain is obtained from the cache of the first process space;

[0028] The target webpage is opened based on the user status data corresponding to the first domain name.

[0029] In some exemplary embodiments, the method for opening web pages without login provided in this disclosure further includes:

[0030] If obtaining the login-free token for the first domain fails, or if the user status data cache corresponding to the first domain expires, then obtain the login-free token for the first domain again.

[0031] If it fails to reacquire the login-free token for the first domain name, a refresh button is displayed to the target user.

[0032] According to another aspect of this disclosure, a webpage opening device without login is also provided, comprising:

[0033] The domain name determination module is used to determine the first domain name of the first webpage in response to a target user's request to open the first webpage;

[0034] The no-login token acquisition module is used to acquire the no-login token of the first domain name, wherein the no-login token corresponds to the user information of the target user;

[0035] The no-login URL determination module is used to obtain the no-login URL based on the first domain name and the no-login token;

[0036] The first webpage opening module is used to open the first webpage according to the login-free URL, wherein the login-free URL is used to verify user information and redirect to the first webpage after the verification is successful.

[0037] In some exemplary embodiments, the no-login URL determination module is used to concatenate the user information verification domain name, the no-login token, the return URL, and the URL of the first webpage to obtain the no-login URL, wherein the user information verification domain name is used to represent the domain name corresponding to the user information verified by the system, and the return URL is used to represent the domain name link to be returned.

[0038] In some exemplary embodiments, the webpage opening device without login provided in this disclosure further includes:

[0039] The user status data storage module is used to obtain user status data corresponding to the first domain name, and the user status data corresponding to the first domain name is used to describe the login status information of the target user in the first domain name; and to store the user status data corresponding to the first domain name in the cache.

[0040] In some exemplary embodiments, the first webpage is a browser webpage, and the no-login token acquisition module is used to determine whether the current time is the first time to acquire the no-login token; if the current time is not the first time to acquire, it determines whether the current time meets the request frequency condition; if the request frequency condition is met, it sends a token acquisition request to the server to obtain the no-login token corresponding to the first domain name.

[0041] In some exemplary embodiments, the first webpage is an internal webpage of the client. The login-free opening method provided in this disclosure also includes:

[0042] The target webpage opening module is used to respond to the target user's request to open the target webpage of the first domain name, obtain user status data corresponding to the first domain name, wherein the target webpage is any webpage of the first domain name; and open the target webpage according to the user status data corresponding to the first domain name.

[0043] In some exemplary embodiments, the user state data storage module is used to store the user state data corresponding to the first domain name in a cache of the first process space, wherein the first process space corresponds to the first account of the target user;

[0044] The target webpage opening module is used to respond to the target user's request to open the target webpage of the first domain name based on the first account, obtain the user status data corresponding to the first domain name from the cache of the first process space, and open the target webpage according to the user status data corresponding to the first domain name.

[0045] In some exemplary embodiments, the no-login token acquisition module is further configured to reacquire the no-login token of the first domain name if the acquisition of the no-login token of the first domain name fails or the user status data cache corresponding to the first domain name expires;

[0046] The webpage opening device without login provided in this disclosure also includes:

[0047] The refresh module is used to display a refresh button to the target user if it fails to reacquire the login-free token for the first domain name.

[0048] According to another aspect of this disclosure, an electronic device is also provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute a login-free webpage opening method of any of the above via executing the executable instructions.

[0049] According to another aspect of this disclosure, a computer-readable storage medium is also provided, on which a computer program is stored, which, when executed by a processor, implements a method for opening a webpage without login as described above.

[0050] According to another aspect of this disclosure, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform the login-free webpage opening method provided in various alternative embodiments of this disclosure.

[0051] The technical solution provided in the embodiments of this disclosure can request the corresponding login-free token through the first domain name of the first webpage and generate the corresponding login-free URL. Therefore, the embodiments of this disclosure can enable the target user to open the corresponding page without entering login information, improving the user experience and ensuring the security of user login information.

[0052] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0053] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure. It is obvious that the drawings described below are merely some embodiments of this disclosure, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.

[0054] Figure 1 A schematic diagram of a system architecture according to an embodiment of this disclosure is shown;

[0055] Figure 2 This diagram illustrates a flowchart of a method for opening a webpage without login, according to an embodiment of the present disclosure.

[0056] Figure 3 This diagram illustrates a flowchart of another method for opening a webpage without login, as described in an embodiment of this disclosure.

[0057] Figure 4 This diagram illustrates a process for opening a webpage without login, according to an embodiment of the present disclosure.

[0058] Figure 5 This diagram illustrates a flowchart of a login-free failure handling method according to an embodiment of the present disclosure;

[0059] Figure 6 This diagram illustrates a login-free webpage opening device according to an embodiment of the present disclosure.

[0060] Figure 7 This diagram illustrates a structural block diagram of an electronic device according to an embodiment of the present disclosure.

[0061] Figure 8 A schematic diagram of a computer-readable storage medium according to an embodiment of the present disclosure is shown. Detailed Implementation

[0062] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, they are provided so that this disclosure will be more comprehensive and complete, and will fully convey the concept of the exemplary embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0063] Furthermore, the accompanying drawings are merely illustrative of this disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and therefore repeated descriptions of them will be omitted. Some block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.

[0064] The specific implementation methods of the embodiments of this disclosure will now be described in detail with reference to the accompanying drawings.

[0065] Figure 1 A schematic diagram of an exemplary application system architecture is shown, illustrating an application of the login-free webpage opening method described in this disclosure. For example... Figure 1 As shown, the system architecture may include terminal device 101, network 102 and server 103.

[0066] In response to a target user's request to open a first webpage, terminal device 101 can determine the first domain name of the first webpage. Then, terminal device 101 can obtain a login-free token for the first domain name from server 103; this login-free token corresponds to the target user's user information. Next, terminal device 101 can obtain a login-free URL based on the first domain name and the login-free token. Finally, terminal device 101 can open the first webpage using the login-free URL, which is used to verify user information and redirect to the first webpage upon successful verification.

[0067] Network 102 is a medium used to provide a communication link between terminal device 101 and server 103, and can be a wired network or a wireless network.

[0068] Optionally, the aforementioned wireless or wired networks use standard communication technologies and / or protocols. The network is typically the Internet, but can also be any network, including but not limited to Local Area Networks (LANs), Metropolitan Area Networks (MANs), Wide Area Networks (WANs), mobile, wired or wireless networks, private networks, or any combination of virtual private networks. In some embodiments, technologies and / or formats including Hyper Text Markup Language (HTML), Extensible Markup Language (XML), etc., are used to represent data exchanged over the network. Furthermore, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Networks (VPNs), and Internet Protocol Security (IPSec) can be used to encrypt all or some links. In other embodiments, custom and / or dedicated data communication technologies can be used to replace or supplement the aforementioned data communication technologies.

[0069] Terminal device 101 can be various electronic devices, including but not limited to smartphones, tablets, laptops, desktop computers, smart speakers, smartwatches, wearable devices, augmented reality devices, virtual reality devices, etc.

[0070] Optionally, the client of the application installed on different terminal devices 101 may be the same, or the client of the same type of application based on different operating systems. Depending on the terminal platform, the specific form of the application client may also be different; for example, the application client may be a mobile client, a PC client, etc.

[0071] Server 103 can be a server that provides various services, such as a backend management server that supports the device operated by the user using terminal device 101. The backend management server can analyze and process received requests and other data, and feed the processing results back to the terminal device.

[0072] Optionally, the server can be a standalone physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.

[0073] Those skilled in the art will know that Figure 1 The number of terminal devices 101, networks 102, and servers 103 shown is merely illustrative. Any number of terminal devices 101, networks 102, and servers 103 can be used as needed. This disclosure does not limit the number of such devices.

[0074] Under the above system architecture, this disclosure provides a method for opening web pages without login, which can be executed by any electronic device with computing power.

[0075] In some embodiments, the method for opening a webpage without login provided in this disclosure can be executed by a terminal device in the system architecture described above; in other embodiments, the method for opening a webpage without login provided in this disclosure can be executed by a server in the system architecture described above; in still other embodiments, the method for opening a webpage without login provided in this disclosure can be implemented by the terminal device and the server in the system architecture described above through interaction.

[0076] Figure 2 This diagram illustrates a flowchart of a method for opening a webpage without login, as shown in an embodiment of this disclosure. Figure 2 As shown, the method for opening a webpage without logging in provided in this embodiment includes the following steps S202 to S208.

[0077] S202, in response to a target user's request to open the first webpage, determine the first domain name of the first webpage.

[0078] In an exemplary embodiment, when a target user opens a first webpage, the link to that first webpage can be obtained, and then the first domain name can be determined from the webpage's links. For example, the link to the first webpage can be in the form of a URL, a relative link, etc.

[0079] Taking the URL of the first webpage as an example, the URL format can be "http+host+params". The "http" part represents the communication protocol, the "host" part represents the domain name of the link, and the "params" part represents at least one of the path, query parameters, and fragment identifiers. The "params" part can be passed to the internal system for parsing when the link is opened. Therefore, the "host" part of the first webpage's link can be considered the first domain name.

[0080] In some possible embodiments, the target user can manually enter the link to the first webpage and open it, or the target user can click the corresponding button on the current page to request redirection to the first webpage. This disclosure does not limit the method by which the target user opens the first webpage.

[0081] It should be noted that the first webpage can be a browser webpage or an internal webpage within the client.

[0082] S204, Obtain the login-free token for the first domain name. The login-free token corresponds to the user information of the target user.

[0083] In one possible implementation, the login-free token can be requested by the terminal from a backend server, which may pre-store user information for at least one user. When the terminal sends a token retrieval request to the backend server, the backend server can return the corresponding login-free token based on the target user's user information.

[0084] In an exemplary embodiment, the backend server can obtain a login-free token based on the first domain name and the target user's user information. That is, the login-free token corresponds to both the target user's user information and the first domain name. Specifically, the login-free token can be used to open web pages under the first domain name, and therefore needs to correspond to the first domain name. Additionally, the login-free token is used for the target user's login-free access, and therefore needs to correspond to the target user's user information.

[0085] It should be noted that a target user can correspond to multiple accounts, in which case each account can correspond to different user information. Alternatively, the accounts corresponding to a target user can correspond to the same user information.

[0086] In some exemplary embodiments, the first webpage can be a browser webpage. In this case, obtaining the login-free token for the first domain name may include: determining whether this is the first time obtaining the login-free token; if this is not the first time obtaining it, determining whether the request frequency condition is met at the current moment; if the request frequency condition is met, sending a token acquisition request to the server to obtain the login-free token corresponding to the first domain name.

[0087] For example, for browser web pages, a login-free token is required every time the first web page is opened. To avoid sending frequent requests to the backend server, a request frequency condition can be set after the login-free token is obtained for the first time. Only when the request frequency condition is met at the current moment can a token acquisition request be sent to the server again.

[0088] In one possible implementation, the request frequency condition can be a valid login-free period. If the current time is more than the valid login-free period since the last time the login-free token was obtained, the request frequency condition is determined to be met, and a token acquisition request can be sent to the server again. If the current time does not meet the request frequency condition, the previously obtained login-free token can be considered to have not expired, and the redirection to the first webpage can be achieved directly based on the previously obtained login-free token.

[0089] This disclosure does not limit the validity period of the login exemption. The validity period can be set according to experience or application scenarios, such as 1 second, 30 seconds, 10 minutes, 1 hour, 24 hours, etc.

[0090] For example, for web pages within the client, a login-free token may only be required when the target user opens the page for the first time, and no login-free token needs to be requested again when opening the web page under the first domain after the first successful login-free opening.

[0091] S206. Based on the first domain name and the no-login token, obtain the no-login URL.

[0092] In some exemplary embodiments, the corresponding no-login URL can be obtained by concatenating the no-login token with the first domain name.

[0093] In some exemplary embodiments, obtaining the login-free URL based on the first domain name and the login-free token includes: concatenating the user information verification domain name, the login-free token, the return URL, and the URL of the first webpage to obtain the login-free URL, wherein the user information verification domain name is used to represent the domain name corresponding to the user information verified by the system, and the return URL is used to represent the domain name link to be returned.

[0094] For example, the user information verification domain name can be the main domain name for account system verification, and the user information verification domain name is the domain name corresponding to the webpage used to verify user information. The returned URL can be a link to the real domain name to be returned. For example, if the target user enters the link of the first webpage in webpage A to open the first webpage, the URL corresponding to webpage A can be the returned URL.

[0095] In one possible implementation, after obtaining the login-free token, information can be concatenated based on the format of "passport domain + token + return URL + destination URL" to obtain the login-free URL. Here, the "passport domain" is the user information verification domain, the "token" is the login-free token, and the destination URL in this embodiment is the URL of the first webpage.

[0096] It should be noted that in other embodiments, information can be spliced ​​together based on different formats, and this disclosure does not limit this.

[0097] S208, Open the first webpage according to the login-free URL, where the login-free URL is used to verify user information and redirect to the first webpage after successful verification.

[0098] For example, taking the first webpage as a browser webpage, after obtaining the no-login URL, you can open the no-login URL in the browser to perform user information system verification. After the verification is successful, you will be redirected to the first webpage.

[0099] In an exemplary embodiment, the login-free URL can be used to redirect to the webpage corresponding to the user information verification domain for user information system verification. If the verification passes, a 302 redirect can be returned to redirect to the first webpage; if the verification fails, the user can be redirected to the return URL.

[0100] In some exemplary embodiments, the method for opening a webpage without login provided in this disclosure may further include: obtaining user status data corresponding to a first domain name, wherein the user status data corresponding to the first domain name is used to describe the login status information of the target user in the first domain name; and storing the user status data corresponding to the first domain name in a cache.

[0101] In an exemplary embodiment, user state data can be determined, which may be cookie data (a type of text file). This user state data can record the login status information of the target user to the first domain and be updated in real time.

[0102] In some embodiments, when a target user is redirected to the first webpage based on the login-free URL, the user status data corresponding to the target user can be updated accordingly to indicate that the target user has logged into the first domain.

[0103] Furthermore, if the first webpage is a browser webpage, the user state data can be stored in the browser's cookie cache manager. The browser can then include this cookie data in subsequent request headers to indicate that the target user has logged into the first domain. If the first webpage is an internal webpage on the client side, the user state data can be stored in the client's internal cache. Moreover, the client can store user state data for multiple domains. For example, the user state data for the first domain might be cookie A, and similarly, the user state data for the second domain could be cookie B. User state data for different domains can be stored separately to avoid conflicts between different domains.

[0104] In some exemplary embodiments, the first webpage can be an internal webpage of the client. In this case, after storing the user state data corresponding to the first domain in the cache, the webpage opening method without login provided in this embodiment may further include: responding to a target user's request to open a target webpage of the first domain, obtaining the user state data corresponding to the first domain, wherein the target webpage is any webpage of the first domain; and opening the target webpage based on the user state data corresponding to the first domain.

[0105] In some possible implementations, the domain name of both the first webpage and the second webpage is the first domain name. If the target user has previously opened the first webpage without logging in, the currently stored user status data can indicate the target user's login status in the first domain name. If the target user needs to open the second webpage, there is no need to request a login-free token.

[0106] It should be noted that when a page under the first domain is opened subsequently, although the link and the location are different, the corresponding cookie data has already been cached locally, so there is no need to request the login-free token again. Therefore, the embodiments of this disclosure effectively reduce the request frequency of the login-free token, and subsequent access to the corresponding page without logging in can be achieved directly, further improving the user experience.

[0107] In some exemplary embodiments, storing the user state data corresponding to the first domain name in a cache includes storing the user state data corresponding to the first domain name in a cache of a first process space, wherein the first process space corresponds to the first account of the target user.

[0108] In this case, the method for opening a webpage without login provided in this embodiment of the present disclosure may include: in response to a target user requesting to open a target webpage of a first domain based on a first account, obtaining user status data corresponding to the first domain from the cache of the first process space; and opening the target webpage based on the user status data corresponding to the first domain.

[0109] In an exemplary embodiment, a target user can correspond to multiple accounts, and each account can correspond to different user status data. For example, if a target user corresponds to account A and account B, and the target user opens the first webpage based on account A, the user status data of the first domain corresponding to account A needs to be obtained from the first process space. However, if the target user switches to account B to open the first webpage, the user status data of the first domain corresponding to account B needs to be obtained from the second process space. If account B is opening the first webpage for the first time, a login-free token corresponding to account B needs to be requested, and the first webpage cannot be opened directly based on the user status data of the first domain corresponding to account A.

[0110] For example, multiple web pages with the same domain can be opened using a DLL (Dynamic Link Library) in the client's main process. Each DLL encapsulates its data internally while providing an external interface, facilitating data isolation and differentiation. Within this DLL, the domain's cookie data can be retrieved. This DLL typically stores cookie data for a single domain. In this case, the cookie data storage method is isolated from the cached data of other pages in the main process. Other pages in the main process cannot interfere with or tamper with the cookie data within the DLL, effectively ensuring data independence within a separate SDK (Software Development Kit). Furthermore, if an account is switched on the client, opening web pages without login can be achieved using a child process.

[0111] It should be noted that the main process and child processes have independent process spaces and can each correspond to different accounts. For example, if the main process stores information about account A, then when switching to account B, the user information on previously opened web pages will be synchronously modified. Furthermore, in the child process, account B can be used to obtain the corresponding login-free token, after which the account system can obtain the cookie data corresponding to account B. This embodiment of the disclosure enables multi-account login by starting multiple processes within the client, ensuring that the login states of each account do not interfere with each other, and that each account can be stored and used independently within its process space.

[0112] It's important to note that if the process of obtaining the login-free token fails—for example, if the API request returns an error, the token is returned as empty, or the token is invalid—it will prevent the user from opening the first webpage without logging in and from retrieving the user status data corresponding to the first domain. Alternatively, even after obtaining the login-free token, the corresponding user status information may have expired in the cache. Once the user status information cache expires, the corresponding login status will become invalid.

[0113] In some exemplary embodiments, the method for opening a webpage without login provided in this disclosure may further include: if obtaining the login-free token of the first domain fails, or the user status data cache corresponding to the first domain expires, then re-obtaining the login-free token of the first domain; if re-obtaining the login-free token of the first domain fails, then displaying a refresh button to the target user.

[0114] In the exemplary embodiment, if obtaining the login-free token for the first domain fails, or the user state data cache corresponding to the first domain expires, the client can automatically re-request the login-free token when redirected to the login page of the first webpage, thereby obtaining the login-free URL to open the first webpage without logging in. Furthermore, the current page can be automatically refreshed once to obtain the latest login status from the cookie, thus restoring the information of the valid login account the instant redirection to the login page.

[0115] For example, if re-requesting the login-free token still fails, since the corresponding login-free token cannot be requested frequently, and excluding network issues, multiple requests may result in a failure due to risk control. In this case, the user can manually click the refresh button to request the login-free token. If successful, the returned cookie data is saved; if it fails again, only the current page is refreshed. The user can also manually enter their account and password to log in and obtain a valid login status.

[0116] The method provided in this disclosure allows a user to request a login-free token from the first domain name of a first webpage and generate a corresponding login-free URL. Therefore, this disclosure enables the target user to open the corresponding page without entering login information, improving user experience and ensuring the security of user login information.

[0117] In an exemplary embodiment, Figure 3 A flowchart illustrating a method for opening web pages without login using a browser is shown. Figure 3 As shown, the method for opening a webpage without logging in provided in this embodiment includes the following steps S302 to S314.

[0118] S302, Begin.

[0119] S304, Get the URL corresponding to the first webpage.

[0120] S306, determine the primary domain name, and decide whether to control the frequency of login-free access.

[0121] S308, determine whether the request frequency condition is met at the current time. If yes, then execute S310; otherwise, execute S312.

[0122] S310, request a login-free token, and obtain the login-free URL based on the login-free token.

[0123] S312 redirects the browser to open the corresponding full link based on the no-login URL.

[0124] It should be noted that this complete link can be the URL corresponding to the first webpage.

[0125] S314, End.

[0126] It should be noted that, Figure 3 The implementation methods of steps S302 to S314 can be found in the corresponding descriptions in S202 to S208 above, and will not be repeated here.

[0127] In an exemplary embodiment, Figure 4 This diagram illustrates a process for opening web pages without login based on a client.

[0128] In Figure 4 In this example, domain A corresponds to webpages 1, 2, and 3. Domain B corresponds to webpages 4, 5, and 6. Domain A can correspond to cookie A, and domain B can correspond to cookie B. Additionally, domain C can correspond to cookie C, and cookie C can be stored using a separate SDK based on a DLL library. Other account domains and webpages can retrieve their corresponding cookie data using a separate exe (executable) process, such as... Figure 4 As shown, the cookie data corresponding to this other account domain can be, for example, cookie D.

[0129] In an exemplary embodiment, Figure 5 A flowchart illustrating a method for handling login failures is shown. Figure 5 As shown, the login failure handling method provided in this embodiment may include the following steps S502 to S512.

[0130] S502, Begin.

[0131] S504, Failed to obtain login-free token or cookie data cache expired.

[0132] S506, automatic or manual update.

[0133] S508, automatically re-acquire the login-free token.

[0134] S510, refresh the current webpage to get the latest cookie data.

[0135] S512, End.

[0136] It should be noted that, Figure 5The implementation methods of steps S502 to S512 can be found in the corresponding description in step S208 above, and will not be repeated here.

[0137] It should be noted that the acquisition, storage, use, and processing of data in this disclosed technical solution comply with the relevant provisions of national laws and regulations. The various types of data, such as personal identity data, operational data, and behavioral data related to individuals, customers, and groups, obtained in the embodiments of this disclosure have all been authorized.

[0138] Based on the same inventive concept, this disclosure also provides a webpage opening device without login, as described in the following embodiments. Since the principle by which this device solves the problem is similar to that of the method embodiments described above, the implementation of this device embodiment can refer to the implementation of the method embodiments described above, and repeated details will not be repeated.

[0139] Figure 6 This diagram illustrates a login-free webpage opening device according to an embodiment of the present disclosure, such as... Figure 6 As shown, the device includes:

[0140] Domain name determination module 601 is used to determine the first domain name of the first webpage in response to a target user's request to open the first webpage;

[0141] The no-login token acquisition module 602 is used to acquire the no-login token of the first domain name, and the no-login token corresponds to the user information of the target user;

[0142] The no-login URL determination module 603 is used to obtain the no-login URL based on the first domain name and the no-login token;

[0143] The first webpage opening module 604 is used to open the first webpage based on the login-free URL, where the login-free URL is used to verify user information and redirect to the first webpage after successful verification.

[0144] In some exemplary embodiments, the no-login URL determination module 603 is used to concatenate the user information verification domain name, no-login token, return URL and the URL of the first webpage to obtain the no-login URL, wherein the user information verification domain name is used to represent the domain name corresponding to the user information verified by the system, and the return URL is used to represent the domain name link to be returned.

[0145] In some exemplary embodiments, the webpage opening device without login provided in this disclosure further includes:

[0146] The user status data storage module is used to obtain user status data corresponding to the first domain name. The user status data corresponding to the first domain name is used to describe the login status information of the target user in the first domain name; and the user status data corresponding to the first domain name is stored in the cache.

[0147] In some exemplary embodiments, the first webpage is a browser webpage, and the no-login token acquisition module 602 is used to determine whether the current time is the first time to acquire the no-login token; if the current time is not the first time to acquire, it determines whether the current time meets the request frequency condition; if the request frequency condition is met, it sends a token acquisition request to the server to obtain the no-login token corresponding to the first domain name.

[0148] In some exemplary embodiments, the first webpage is an internal webpage of the client. The login-free opening method provided in this disclosure also includes:

[0149] The target webpage opening module is used to respond to a target user's request to open a target webpage of the first domain, obtain the user status data corresponding to the first domain, where the target webpage can be any webpage of the first domain; and open the target webpage based on the user status data corresponding to the first domain.

[0150] In some exemplary embodiments, the user state data storage module is used to store the user state data corresponding to the first domain name in a cache of the first process space, and the first process space corresponds to the first account of the target user;

[0151] The target webpage opening module is used to respond to a target user's request to open a target webpage of the first domain based on the first account, retrieve the user status data corresponding to the first domain from the cache of the first process space, and open the target webpage based on the user status data corresponding to the first domain.

[0152] In some exemplary embodiments, the no-login token acquisition module 602 is further configured to reacquire the no-login token of the first domain if the acquisition of the no-login token of the first domain fails or the user status data cache corresponding to the first domain expires;

[0153] The webpage opening device without login provided in this disclosure also includes:

[0154] The refresh module displays a refresh button to the target user if it fails to reacquire the login token for the first domain.

[0155] The apparatus provided in this disclosure can request a corresponding login-free token through the first domain name of a first webpage and generate a corresponding login-free URL. Therefore, this disclosure allows target users to open the corresponding page without entering login information, improving user experience and ensuring the security of user login information.

[0156] It should be noted that the domain name determination module 601, the login-free token acquisition module 602, the login-free URL determination module 603, and the first webpage opening module 604 correspond to S202 to S208 in the method embodiment. The examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the content disclosed in the above method embodiment. It should be noted that the above modules, as part of the apparatus, can be executed in a computer system such as a set of computer-executable instructions.

[0157] Those skilled in the art will understand that various aspects of this disclosure can be implemented as a system, method, or program product. Therefore, various aspects of this disclosure can be specifically implemented in the following forms: a completely hardware implementation, a completely software implementation (including firmware, microcode, etc.), or a combination of hardware and software aspects, collectively referred to herein as a "circuit," "module," or "system."

[0158] This disclosure provides an electronic device, which, exemplarily, includes a processor and a memory. The memory can be used to store executable instructions of the processor. The processor is configured to execute the aforementioned executable instructions to provide a login-free webpage opening method according to this disclosure.

[0159] The following reference Figure 7 To describe an electronic device 700 according to such an embodiment of the present disclosure. Figure 7 The electronic device 700 shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments disclosed herein.

[0160] like Figure 7 As shown, the electronic device 700 is presented in the form of a general-purpose computing device. The components of the electronic device 700 may include, but are not limited to: at least one processing unit 710, at least one storage unit 720, and a bus 730 connecting different system components (including the storage unit 720 and the processing unit 710).

[0161] The storage unit stores program code that can be executed by the processing unit 710, causing the processing unit 710 to perform the steps described in the "Exemplary Methods" section of this specification according to various exemplary embodiments of the present disclosure. For example, the processing unit 710 can perform the following steps of the above method embodiments:

[0162] In response to a target user's request to open the first webpage, determine the first domain name of the first webpage; obtain the login-free token of the first domain name, which corresponds to the user information of the target user; obtain the login-free URL based on the first domain name and the login-free token; open the first webpage based on the login-free URL, where the login-free URL is used to verify user information and redirect to the first webpage after successful verification.

[0163] Storage unit 720 may include a readable medium in the form of a volatile storage unit, such as random access memory (RAM) 7201 and / or cache memory 7202, and may further include a read-only memory (ROM) 7203.

[0164] The storage unit 720 may also include a program / utility 7204 having a set (at least one) program module 7205, such program module 7205 including but not limited to: an operating system, one or more application programs, other program modules and program data, each or some combination of these examples may include an implementation of a network environment.

[0165] Bus 730 can represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of the various bus structures.

[0166] Electronic device 700 can also communicate with one or more external devices 740 (e.g., keyboard, pointing device, Bluetooth device, etc.), and with one or more devices that enable a user to interact with electronic device 700, and / or with any device that enables electronic device 700 to communicate with one or more other computing devices (e.g., router, modem, etc.). This communication can be performed via input / output (I / O) interface 750. Furthermore, electronic device 700 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 760. As shown, network adapter 760 communicates with other modules of electronic device 700 via bus 730. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0167] From the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, terminal device, or network device, etc.) to execute the methods according to the embodiments of this disclosure.

[0168] In particular, according to embodiments of this disclosure, the process described above with reference to the flowchart can be implemented as a computer program product, which includes a computer program that, when executed by a processor, implements the above-described method for opening web pages without login.

[0169] In exemplary embodiments of this disclosure, a computer-readable storage medium is also provided, on which a computer program is stored. When executed by a processor, the computer program can implement the login-free webpage opening method provided in the embodiments of this disclosure. The computer-readable storage medium may be a readable signal medium or a readable storage medium.

[0170] Figure 8 This illustration shows a schematic diagram of a computer-readable storage medium according to an embodiment of the present disclosure, such as... Figure 8 As shown, the computer-readable storage medium 800 stores a program product capable of implementing the methods described above in this disclosure. In some possible embodiments, various aspects of this disclosure may also be implemented as a program product comprising program code that, when run on a terminal device, causes the terminal device to perform the steps described in the "Exemplary Methods" section of this specification according to various exemplary embodiments of this disclosure.

[0171] More specific examples of computer-readable storage media in this disclosure may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0172] In this disclosure, a computer-readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium, capable of transmitting, propagating, or transmitting a program for use by or in connection with an instruction execution system, apparatus, or device.

[0173] Optionally, the program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.

[0174] In practical implementation, program code for performing the operations of this disclosure can be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java and C++, and conventional procedural programming languages ​​such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0175] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to embodiments of this disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.

[0176] Furthermore, although the steps of the method in this disclosure are described in a specific order in the accompanying drawings, this does not require or imply that the steps must be performed in that specific order, or that all the steps shown must be performed to achieve the desired result. Additional or alternative steps may be omitted, multiple steps may be combined into one step, and / or a step may be broken down into multiple steps.

[0177] From the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, mobile terminal, or network device, etc.) to execute the methods according to the embodiments of this disclosure.

[0178] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope of this disclosure is indicated by the appended claims.

Claims

1. A method for opening a webpage without logging in, characterized in that, include: In response to a target user's request to open a first webpage, determine the first domain name of the first webpage; Obtain the login-free token for the first domain name, wherein the login-free token corresponds to the user information of the target user; Based on the first domain name and the login-free token, the login-free Uniform Resource Locator URL is obtained; The first webpage is opened according to the login-free URL, wherein the login-free URL is used to verify user information and redirect to the first webpage after the verification is successful.

2. The method for opening a webpage without login according to claim 1, characterized in that, The step of obtaining the login-free URL based on the first domain name and the login-free token includes: The login-free URL is obtained by concatenating the user information verification domain name, the login-free token, the returned URL, and the URL of the first webpage. The user information verification domain name is used to represent the domain name corresponding to the user information verified by the system, and the returned URL is used to represent the domain name link to be returned.

3. The method for opening a webpage without login according to claim 1, characterized in that, The method further includes: Obtain user status data corresponding to the first domain name, which is used to describe the login status information of the target user in the first domain name; Store the user status data corresponding to the first domain name in the cache.

4. The method for opening a webpage without login according to any one of claims 1 to 3, characterized in that, The first webpage is a browser webpage, and obtaining the login-free token for the first domain name includes: Determine if this is the first time the login-free token has been obtained; If this is not the first time the request is made, it is determined whether the request frequency condition is met at the current moment. If the request frequency condition is met, a token acquisition request is sent to the server to obtain the login-free token corresponding to the first domain name.

5. The method for opening a webpage without login according to claim 3, characterized in that, The first webpage is an internal webpage of the client. After storing the user status data corresponding to the first domain name in the cache, the method further includes: In response to the target user's request to open the target webpage of the first domain, obtain the user status data corresponding to the first domain, wherein the target webpage is any webpage of the first domain; The target webpage is opened based on the user status data corresponding to the first domain name.

6. The method for opening a webpage without login according to claim 5, characterized in that, The step of storing the user status data corresponding to the first domain name in the cache includes: The user status data corresponding to the first domain name is stored in the cache of the first process space, and the first process space corresponds to the first account of the target user. The method includes: In response to the target user requesting to open the target webpage of the first domain based on the first account, the user status data corresponding to the first domain is obtained from the cache of the first process space; The target webpage is opened based on the user status data corresponding to the first domain name.

7. The method for opening a webpage without login according to claim 3, characterized in that, The method further includes: If obtaining the login-free token for the first domain fails, or if the user status data cache corresponding to the first domain expires, then obtain the login-free token for the first domain again. If it fails to reacquire the login-free token for the first domain name, a refresh button is displayed to the target user.

8. A device for opening web pages without login, characterized in that, include: The domain name determination module is used to determine the first domain name of the first webpage in response to a target user's request to open the first webpage; The no-login token acquisition module is used to acquire the no-login token of the first domain name, wherein the no-login token corresponds to the user information of the target user; The no-login URL determination module is used to obtain the no-login URL based on the first domain name and the no-login token; The first webpage opening module is used to open the first webpage according to the login-free URL, wherein the login-free URL is used to verify user information and redirect to the first webpage after the verification is successful.

9. An electronic device, characterized in that, include: processor; as well as Memory for storing the executable instructions of the processor; The processor is configured to execute the webpage opening method without login as described in any one of claims 1 to 7 by executing the executable instructions.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the method for opening a webpage without login as described in any one of claims 1 to 7.

11. A computer program product, characterized in that, The computer program product includes computer instructions stored in a computer-readable storage medium. The processor of the electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform the login-free webpage opening method as described in any one of claims 1 to 7.