Website service authorization state sharing method and system
By establishing a cookie pool on the cloud to store cookie information on the website's business authorization status, it solves the problem that it is difficult to share the website's business authorization status among multiple business systems, and achieves business continuity and performance optimization.
Patent Information
- Application Number
- CN202411939508.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-26
- Publication Date
- 2025-05-06
AI Technical Summary
The prior art is difficult to realize the sharing of website business authorization status between multiple business systems, resulting in business interruption and performance waste.
Establish a cookie pool through the cloud to store cookie information corresponding to the website business authorization status. When the business system calls the website business interface, the cookie information in the cookie pool is preferred. If the required business authorization status does not exist or expires, the business authorization status will be re-obtained.
It realizes the sharing of website business authorization status, avoids the problem of business authorization status failure when multiple business systems are used simultaneously, and ensures continuous and uninterrupted business.
Smart Images

Figure HDA0005212277870000011 
Figure HDA0005212277870000021 
Figure HDA0005212277870000031
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information technology application technology, and more specifically, to a website service authorization status sharing method and system. Background Art
[0002] For Internet products in the form of websites, sometimes it is necessary to integrate website functions into other business systems to form an integrated whole and improve user experience. Integration mainly realizes business operations by analyzing and imitating website interfaces. It can re-create a display interface that is different from the original website and has better consistency with the business system.
[0003] Websites usually include a login function. When multiple logins are made, the user who logged in later can operate, while the user who logged in earlier will be forced to log off and enter the non-logged-in state. This problem can be solved by sharing the login status. However, in order to improve security, more and more websites have made further restrictions. The login status information after login cannot directly call the website business interface. When the website enters the business module, the login status information will be used to exchange for the business authorization status. The business authorization status exchanged for different business modules is different. Only when the correct business authorization status is obtained can the business interface of the corresponding business be called. Unlike the login status, the business authorization status is often not valid for a long time. It is only obtained by using the login status information when it is needed or expires.
[0004] Due to the particularity of the website's business authorization status, it becomes difficult to share between multiple business systems, because different business systems require different business authorization statuses. If the business authorization statuses of all businesses are obtained and shared, it will take up a lot of time and waste system performance. And each time the business authorization status of the required business is obtained, the earlier obtained business authorization status will become invalid when multiple business systems execute the same website business. And each time it is determined whether the business authorization status information of the required business exists, and it is used directly if it exists, the business authorization status may become invalid and cannot be used.
[0005] Website login in the existing technology all supports caching website login information to achieve website login, but does not consider the scenario where the business authorization status needs to be obtained when operating the business after login, and when multiple business systems are used at the same time, the business authorization status cannot be shared, resulting in business interruption.
[0006] Therefore, a technology is needed to achieve the sharing of website service authorization status. Summary of the invention
[0007] The technical solution of the present invention provides a website business authorization status sharing method and system to solve the problem of how to share the website business authorization status based on a cookie pool.
[0008] In order to solve the above problem, the present invention provides a method for sharing website service authorization status, the method comprising:
[0009] Query the login account and password of the target website submitted by the user;
[0010] Query the cookie information corresponding to the login account submitted by the user of the target website;
[0011] When the cookie information corresponding to the login account is queried, determine whether the cookie information contains the current business authorization cookie;
[0012] When it is determined that the Cookie information contains the current service authorization Cookie, the website service interface is called through the Cookie information.
[0013] Preferably, the method further comprises: when the cookie information corresponding to the login account is not found, calling the login interface of the target website through the login account and password of the target website;
[0014] When the login interface returns a success prompt, the current business authorization status Cookie is obtained through the Cookie information;
[0015] Writing the cookie information corresponding to the login account of the target website into the cookie pool, wherein the cookie information includes the obtained current business authorization status cookie;
[0016] The website business interface is called through the Cookie information.
[0017] Preferably, it also includes: when it is determined that the Cookie information does not contain the current service authorization Cookie, calling the target website to obtain the service authorization status interface through the Cookie information to obtain the service authorization status Cookie of the current service;
[0018] When the business authorization status Cookie is successfully obtained, the Cookie pool write interface is called to write the Cookie information corresponding to the login account of the target website into the Cookie pool, and the Cookie information includes the current business authorization status Cookie obtained;
[0019] The website business interface is called through the Cookie information.
[0020] Preferably, it also includes: when the cookie information returns unsuccessful after calling the website business interface, calling the cookie pool to delete the cookie information corresponding to the login account of the target website. (Corresponding to step 7)
[0021] Preferably, the Cookie pool is set in the cloud, including: a query interface, a write interface and a delete interface;
[0022] The query interface is used to query the cookie information corresponding to the login account submitted by the target website; share the historical login status of the target website with the current login behavior;
[0023] The write interface is used to write the cookie information corresponding to the login account submitted by the target website. When the cookie information does not exist in the cookie pool, the cookie information is newly added to the cookie pool; when the cookie information exists in the cookie pool, the existing cookie information is overwritten by the cookie information;
[0024] The deletion interface is used to delete the cookie information corresponding to the login account submitted by the target website.
[0025] Preferably, the method is also applied to the sharing of authorization status of the client and the application App.
[0026] Based on another aspect of the present invention, the present invention provides a website service authorization status sharing system, the system comprising:
[0027] A query unit, used to query the login account and password of the target website submitted by the user terminal; query the Cookie information corresponding to the login account submitted by the user terminal of the target website;
[0028] A judgment unit, configured to judge whether the Cookie information corresponding to the login account contains the current business authorization Cookie when the Cookie information is queried;
[0029] The execution unit is used to call the website business interface through the Cookie information when it is determined that the Cookie information contains the current business authorization Cookie.
[0030] Preferably, the execution unit is further configured to call the login interface of the target website through the login account and password of the target website when the cookie information corresponding to the login account is not found;
[0031] When the login interface returns a success prompt, the current business authorization status Cookie is obtained through the Cookie information;
[0032] Writing the cookie information corresponding to the login account of the target website into the cookie pool, wherein the cookie information includes the obtained current business authorization status cookie;
[0033] The website service interface is called through the Cookie information. Preferably, the execution unit is further configured to, when it is determined that the Cookie information does not contain the current service authorization Cookie, call the target website service authorization status interface through the Cookie information to obtain the service authorization status Cookie of the current service;
[0034] When the business authorization status Cookie is successfully obtained, the Cookie pool write interface is called to write the Cookie information corresponding to the login account of the target website into the Cookie pool, and the Cookie information includes the current business authorization status Cookie obtained;
[0035] The website service interface is called through the Cookie information. Preferably, the execution unit is further configured to call the Cookie pool to delete the Cookie information corresponding to the login account of the target website when the Cookie information returns an unsuccessful call to the website service interface.
[0036] Preferably, the execution unit is also used to set the Cookie pool in the cloud, including: a query interface, a write interface and a delete interface;
[0037] The query interface is used to query the cookie information corresponding to the login account submitted by the target website; share the historical login status of the target website with the current login behavior;
[0038] The write interface is used to write the cookie information corresponding to the login account submitted by the target website. When the cookie information does not exist in the cookie pool, the cookie information is newly added to the cookie pool; when the cookie information exists in the cookie pool, the existing cookie information is overwritten by the cookie information;
[0039] The deletion interface is used to delete the cookie information corresponding to the login account submitted by the target website.
[0040] Preferably, the execution unit is also used for sharing the authorization status of the client and the application App.
[0041] The technical solution of the present invention provides a method and system for sharing the business authorization status of a website, wherein the method includes: querying the login account and password of the target website submitted by the user end; querying the Cookie information corresponding to the login account submitted by the user end of the target website; when the Cookie information corresponding to the login account is queried, judging whether the Cookie information contains the current business authorization Cookie; when judging that the Cookie information contains the current business authorization Cookie, calling the website business interface through the Cookie information. The technical solution of the present invention proposes a method and system for sharing the business authorization status of a website, which establishes a Cookie pool in the cloud to store the Cookie information corresponding to the business authorization status of the website. When the business system calls the website business interface, the Cookie information in the Cookie pool is used first. If the required business authorization status does not exist or expires, the business authorization status is obtained again to realize the sharing of the business authorization status of the website, avoid the invalidation of the business authorization status when multiple business systems are used at the same time, and ensure the continuity of business. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] A more complete understanding of exemplary embodiments of the present invention may be obtained by referring to the following drawings:
[0043] Figure 1 A flow chart of a website service authorization status sharing method according to a preferred embodiment of the present invention;
[0044] Figure 2 A logic flow chart of website service authorization status sharing according to a preferred embodiment of the present invention; and
[0045] Figure 3 The structure diagram of a website service authorization status sharing system according to a preferred embodiment of the present invention. DETAILED DESCRIPTION
[0046] Now, exemplary embodiments of the present invention are described with reference to the accompanying drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. These embodiments are provided to disclose the present invention in detail and completely and to fully convey the scope of the present invention to those skilled in the art. The terms used in the exemplary embodiments shown in the accompanying drawings are not intended to limit the present invention. In the accompanying drawings, the same units / elements are marked with the same reference numerals.
[0047] Unless otherwise specified, the terms (including technical terms) used herein have the commonly understood meanings to those skilled in the art. In addition, it is understood that the terms defined in commonly used dictionaries should be understood to have the same meanings as those in the context of the relevant fields, and should not be understood as idealized or overly formal meanings.
[0048] Figure 1 The present invention is a flowchart of a website service authorization status sharing method according to a preferred embodiment of the present invention.
[0049] The present invention proposes a method for sharing website business authorization status. A cookie pool is established in the cloud (Cookie refers to data stored on a user's local terminal in order to identify the user's identity, and is temporarily or permanently saved by the user's client computer) to store Cookie information corresponding to the website's business authorization status. When a business system calls a website's business interface, Cookie information in the Cookie pool is used first. If the required business authorization status does not exist or expires, the business authorization status is acquired again to achieve website business authorization status sharing, avoid business authorization status failure when multiple business systems are used at the same time, and ensure business continuity.
[0050] The present invention comprises two parts: a cookie pool and a business system. The cookie pool is used to store cookie information generated after website login, and the business system shares the cookie information with the help of the cookie pool, thereby realizing login status sharing.
[0051] like Figure 1 As shown, the present invention provides a method for sharing website service authorization status, the method comprising:
[0052] Step 101: Query the login account and password of the target website submitted by the user;
[0053] When using the business system of the present invention, the user needs to fill in the login account and password information of the website. When using it for the first time, log in to the website directly to obtain and share the business authorization status. When it is not used for the first time, the previous business authorization status of the website is used first. When it expires, the website information is automatically used to log in and the business authorization status is obtained again.
[0054] The present invention first queries the website login account and password information filled in by the user.
[0055] Step 102: Query the Cookie information corresponding to the login account submitted by the target website user;
[0056] The present invention calls the Cookie pool query interface to query the Cookie information of the specified website and the specified login account. If it exists, continue to 103, otherwise jump to 108.
[0057] Step 103: When the cookie information corresponding to the login account is queried, it is determined whether the cookie information contains the current business authorization cookie;
[0058] The present invention determines whether the Cookie information contains the current business authorization Cookie (different business authorization Cookies are usually stored in different Cookie fields).
[0059] Step 104: When it is determined that the Cookie information contains the current service authorization Cookie, the website service interface is called through the Cookie information.
[0060] Preferably, the method further comprises: when the cookie information corresponding to the login account is not found, calling the login interface of the target website through the login account and password of the target website;
[0061] When the login interface returns a success prompt, obtain the current business authorization status cookie through the cookie information;
[0062] Write the cookie information corresponding to the login account of the target website into the cookie pool. The cookie information contains the current business authorization status cookie obtained;
[0063] Call the website business interface through Cookie information.
[0064] The present invention uses the website login account and password to call the website login interface, and determines whether the interface returns successfully. If so, continue with the following steps, otherwise report an error "account password error" and the process ends.
[0065] The present invention uses Cookie information to call the website to obtain the service authorization status interface, and obtains the service authorization status Cookie of the current service (because the re-login has just been completed, the acquisition will definitely be successful when the website is normal).
[0066] The present invention calls a Cookie pool writing interface to write Cookie information of a specified login account of a specified website, which includes a newly acquired business authorization status Cookie.
[0067] The present invention uses Cookie information to call the website business interface. Regardless of whether the interface returns successfully or not, the process ends and the interface returns information.
[0068] Preferably, it also includes: when it is determined that the Cookie information does not contain the current service authorization Cookie, calling the target website to obtain the service authorization status interface through the Cookie information to obtain the service authorization status Cookie of the current service;
[0069] When the business authorization status cookie is successfully obtained, the Cookie pool write interface is called to write the Cookie information corresponding to the login account of the target website into the Cookie pool. The Cookie information contains the current business authorization status cookie obtained;
[0070] Call the website business interface through Cookie information.
[0071] The present invention uses Cookie information to call the website to obtain the service authorization status interface, obtain the service authorization status Cookie of the current service, and continue with the following steps if the acquisition is successful.
[0072] The present invention calls a Cookie pool writing interface to write Cookie information of a specified login account of a specified website, which includes a newly acquired business authorization status Cookie.
[0073] The present invention uses Cookie information to call the website business interface and determines whether the interface returns successfully, and ends the process if it is successful.
[0074] Preferably, the method further includes: when the Cookie information returns unsuccessful after calling the website business interface, calling the Cookie pool to delete the Cookie information corresponding to the login account of the target website.
[0075] The present invention calls the Cookie pool deletion interface to delete the Cookie information of the specified login account of the specified website.
[0076] Preferably, the Cookie pool is set in the cloud, including: a query interface, a write interface, and a delete interface;
[0077] The query interface is used to query the cookie information corresponding to the login account submitted by the target website; share the historical login status of the target website with the current login behavior;
[0078] The write interface is used to write the cookie information corresponding to the login account submitted by the target website. When the cookie information does not exist in the cookie pool, the cookie information is added to the cookie pool; when the cookie information exists in the cookie pool, the existing cookie information is overwritten by the cookie information;
[0079] The deletion interface is used to delete the cookie information corresponding to the login account submitted by the target website.
[0080] The Cookie pool of the present invention is a cloud service, including three service interfaces: query interface, write interface, and delete interface.
[0081] (1) Query interface: query the cookie information of a specified login account on a specified website. Used to share the previous login status of the website with the new login behavior.
[0082] (2) Write interface: write the cookie information of the specified login account of the specified website. If the cookie information does not exist in the cookie pool, it will be added, and if it exists, it will be overwritten. It is used to save the website login status for subsequent new login behaviors to share.
[0083] (3) Delete interface: Delete the cookie information of the specified login account of the specified website. It is used to delete the expired cookie information of the website to avoid multiple attempts to use but fail.
[0084] Preferably, the method is also applied to sharing the authorization status of the client and the application App.
[0085] In addition to website services, clients and apps may also use similar service authorization mechanisms, and the method of the present invention may be used as a reference to achieve sharing of service authorization status.
[0086] like Figure 2 As shown, the website service authorization status sharing processing logic of the present invention is as follows:
[0087] Step 1: Query the website login account and password information filled in by the user.
[0088] Step 2: Call the Cookie pool query interface to query the Cookie information of the specified login account of the specified website. If it exists, continue to step 3, otherwise jump to step 8.
[0089] Step 3: Determine whether the cookie information contains the current business authorization cookie (different business authorization cookies are usually stored in different cookie fields). If so, jump to step 6, otherwise continue with step 4.
[0090] Step 4: Use the cookie information to call the website to obtain the service authorization status interface, obtain the service authorization status cookie of the current service, and proceed to step 5 if successful, otherwise jump to step 7.
[0091] Step 5: Call the Cookie pool write interface to write the Cookie information of the specified login account of the specified website, which includes the newly obtained business authorization status Cookie.
[0092] Step 6: Use the cookie information to call the website business interface and determine whether the interface returns successfully. If yes, end the process, otherwise continue to step 7.
[0093] Step 7: Call the Cookie pool deletion interface to delete the Cookie information of the specified login account of the specified website.
[0094] Step 8: Use the website login account and password to call the website login interface, and determine whether the interface returns successfully. If yes, continue to step 9, otherwise an error message "account password error" will be reported and the process ends.
[0095] Step 9: Use the cookie information to call the website to obtain the service authorization status interface and obtain the service authorization status cookie of the current service (because the re-login has just been completed, the acquisition will be successful if the website is normal).
[0096] Step 10: Call the Cookie pool write interface to write the Cookie information of the specified login account of the specified website, which includes the newly obtained business authorization status Cookie.
[0097] Step 11: Use the cookie information to call the website business interface. Regardless of whether the interface returns successfully or not, the process ends and the interface returns information.
[0098] The present invention supports sharing of website service authorization status, which can be obtained by one party and shared by multiple parties, thus avoiding forced offline caused by repeated acquisition and ensuring uninterrupted service continuity.
[0099] When operating a website service, the present invention only obtains the website service authorization status of the current service, avoids obtaining unnecessary service authorization status, and improves website service processing performance.
[0100] In addition to website services, clients and apps may also use similar service authorization mechanisms, and the method of the present invention may be used as a reference to achieve sharing of service authorization status.
[0101] The present invention proposes a method for sharing website business authorization status. A cookie pool is established in the cloud to store cookie information corresponding to the website business authorization status. When a business system calls a website business interface, the cookie information in the cookie pool is used first. If the required business authorization status does not exist or expires, the business authorization status is obtained again to achieve website business authorization status sharing, avoid business authorization status failure when multiple business systems are used at the same time, and ensure business continuity.
[0102] Figure 3 The structure diagram of a website service authorization status sharing system according to a preferred embodiment of the present invention.
[0103] like Figure 3 As shown, the present invention provides a website service authorization status sharing system, the system comprising:
[0104] The query unit 301 is used to query the login account and password of the target website submitted by the user terminal; query the Cookie information corresponding to the login account submitted by the user terminal of the target website;
[0105] The judgment unit 302 is used to judge whether the Cookie information corresponding to the login account contains the current business authorization Cookie when the Cookie information corresponding to the login account is queried; (if found, corresponding to step 3)
[0106] The execution unit 303 is used to call the website service interface through the Cookie information when it is determined that the Cookie information contains the current service authorization Cookie.
[0107] Preferably, the execution unit 303 is further configured to call the login interface of the target website through the login account and password of the target website when the cookie information corresponding to the login account is not found;
[0108] When the login interface returns a success prompt, obtain the current business authorization status cookie through the cookie information;
[0109] Write the cookie information corresponding to the login account of the target website into the cookie pool. The cookie information contains the current business authorization status cookie obtained;
[0110] Call the website business interface through Cookie information. (Corresponding to step 8)
[0111] Preferably, the execution unit 303 is further configured to, when it is determined that the Cookie information does not contain the current service authorization Cookie, call the target website to obtain the service authorization status interface through the Cookie information to obtain the service authorization status Cookie of the current service;
[0112] When the business authorization status cookie is successfully obtained, the Cookie pool write interface is called to write the Cookie information corresponding to the login account of the target website into the Cookie pool. The Cookie information contains the current business authorization status cookie obtained;
[0113] Call the website business interface through Cookie information. (Corresponding to step 4)
[0114] Preferably, the execution unit 303 is further configured to call the Cookie pool to delete the Cookie information corresponding to the login account of the target website when the Cookie information returns unsuccessful after calling the website business interface.
[0115] Preferably, the execution unit 303 is also used to set the Cookie pool in the cloud, including: a query interface, a write interface and a delete interface;
[0116] The query interface is used to query the cookie information corresponding to the login account submitted by the target website; share the historical login status of the target website with the current login behavior;
[0117] The write interface is used to write the cookie information corresponding to the login account submitted by the target website. When the cookie information does not exist in the cookie pool, the cookie information is added to the cookie pool; when the cookie information exists in the cookie pool, the existing cookie information is overwritten by the cookie information;
[0118] The deletion interface is used to delete the cookie information corresponding to the login account submitted by the target website.
[0119] Preferably, the execution unit 303 is also used for sharing the authorization status of the client and the application App.
[0120] A website service authorization status sharing system according to a preferred embodiment of the present invention corresponds to a website service authorization status sharing method according to another preferred embodiment of the present invention, and will not be described in detail herein.
[0121] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. The schemes in the embodiments of the present invention may be implemented in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.
[0122] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0123] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0124] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0125] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0126] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
[0127] The invention has been described above with reference to a few embodiments. However, it is readily apparent to a person skilled in the art that other embodiments than the ones disclosed above are equally within the scope of the invention, as defined by the appended patent claims.
[0128] Generally, all terms used in the claims are to be interpreted according to their ordinary meaning in the technical field, unless explicitly defined otherwise herein. All references to "a / said / the [means, components, etc.]" are to be openly interpreted as at least one instance of said means, components, etc., unless explicitly stated otherwise. The steps of any method disclosed herein do not necessarily have to be performed in the exact order disclosed, unless explicitly stated otherwise.
Claims
1. A method for sharing website service authorization status, the method comprising: Query the login account and password of the target website submitted by the user; Query the cookie information corresponding to the login account submitted by the user of the target website; When the cookie information corresponding to the login account is queried, determine whether the cookie information contains the current business authorization cookie; When it is determined that the Cookie information contains the current service authorization Cookie, the website service interface is called through the Cookie information.
2. The method according to claim 1, further comprising: When the cookie information corresponding to the login account is not found, the login interface of the target website is called through the login account and password of the target website; When the login interface returns a success prompt, the current business authorization status Cookie is obtained through the Cookie information; Writing the cookie information corresponding to the login account of the target website into the cookie pool, wherein the cookie information includes the obtained current business authorization status cookie; The website business interface is called through the Cookie information.
3. The method according to claim 1, further comprising: When it is determined that the Cookie information does not contain the current service authorization Cookie, the target website is called to obtain the service authorization status interface through the Cookie information to obtain the service authorization status Cookie of the current service; When the business authorization status Cookie is successfully obtained, the Cookie pool write interface is called to write the Cookie information corresponding to the login account of the target website into the Cookie pool, and the Cookie information includes the current business authorization status Cookie obtained; The website business interface is called through the Cookie information.
4. The method according to claim 3, further comprising: When the cookie information returns unsuccessful after calling the website business interface, the cookie pool is called to delete the cookie information corresponding to the login account of the target website.
5. The method according to claim 2, wherein the Cookie pool is set in the cloud, comprising: Query interface, write interface, and delete interface; The query interface is used to query the Cookie information corresponding to the login account submitted by the target website; Sharing the historical login status of the target website to the current login behavior; The write interface is used to write the cookie information corresponding to the login account submitted by the target website, and when the cookie information does not exist in the cookie pool, the cookie information is newly added to the cookie pool; When the Cookie information exists in the Cookie pool, the existing Cookie information is overwritten by the Cookie information; The deletion interface is used to delete the cookie information corresponding to the login account submitted by the target website.
6. The method according to claim 1 is also applied to sharing the authorization status of a client and an application App.
7. A website service authorization status sharing system, the system comprising: A query unit, used to query the login account and password of the target website submitted by the user; Query the cookie information corresponding to the login account submitted by the user of the target website; A judgment unit, configured to judge whether the Cookie information corresponding to the login account contains the current business authorization Cookie when the Cookie information is queried; The execution unit is used to call the website business interface through the Cookie information when it is determined that the Cookie information contains the current business authorization Cookie.
8. The system according to claim 7, wherein the execution unit is further configured to call the login interface of the target website through the login account and password of the target website when the cookie information corresponding to the login account is not found; When the login interface returns a success prompt, the current business authorization status Cookie is obtained through the Cookie information; Writing the cookie information corresponding to the login account of the target website into the cookie pool, wherein the cookie information includes the obtained current business authorization status cookie; The website business interface is called through the Cookie information.
9. The system according to claim 7, wherein the execution unit is further configured to, when it is determined that the Cookie information does not contain the current service authorization Cookie, call the target website to obtain the service authorization status interface through the Cookie information to obtain the service authorization status Cookie of the current service; When the business authorization status Cookie is successfully obtained, the Cookie pool write interface is called to write the Cookie information corresponding to the login account of the target website into the Cookie pool, and the Cookie information includes the current business authorization status Cookie obtained; The website business interface is called through the Cookie information.
10. According to the system of claim 9, the execution unit is further used to call the Cookie pool to delete the Cookie information corresponding to the login account of the target website when the Cookie information returns unsuccessful after calling the website business interface.
Citation Information
Patent Citations
Method for permitting and blocking use of internet by detecting plural terminals on network
CN101836195A
Function for supporting anonymous verification of central authentication service in same master domain
CN102316080A
Website login state sharing method and system
CN117714522A