Method and device for processing cookie information
A processing method and account technology, which is applied in the Internet field, can solve problems such as disadvantages, improve user experience, and multiple accounts cannot be automatically logged in, and achieve the effect of simple login operation and improved user experience
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Publication Date
- 2014-03-05
- Estimated Expiration
- Not applicable · inactive patent
Smart Images
Figure 1 Figure 2 Figure 3
Abstract
Description
technical field
[0001] The invention relates to the field of the Internet, in particular to a method and device for processing cookie information. Background technique
[0002] The small text file cookie information in the browser refers to the data stored on the user's local terminal (Client Side) by the website in order to identify the user's identity. The technology of reading data, each website server can only store the cookie information belonging to its own domain name on the user's computer, and this cookie information can only be read by the website server pointed to by the domain name through the browser.
[0003] With the rapid development of network technology, more and more people start to send and receive emails, log in to personal space, play online games, log in to forums and Weibo, etc. through browsers. In order to facilitate user login and reduce the cumbersome operation of entering account numbers and passwords for each login, the Internet protocol RFC210...
Examples
Embodiment 1
[0075] An embodiment of the present invention provides a method for processing cookie information, wherein the method can be used when a user uses at least two accounts to visit the same website through a browser.
[0076] figure 1 It is a flowchart of a method for processing cookie information according to an embodiment of the present invention, and the method includes steps S102 to S106.
[0077] S102. Receive a trigger instruction for storing cookie information, and obtain the URL of the website that the user logs in through the account name and the cookie information formed by this login.
[0078] S104. Establish a mapping relationship among account names, URLs, and cookie information.
[0079] S106. Separately save the mapping relationship.
[0080] The present invention provides a method for processing cookie information. By this method, when storing the user's cookie information locally, first establish the corresponding relationship between the website address, accou...
Embodiment 2
[0082] As another optional embodiment of the present invention, this embodiment provides a method for processing cookie information. The method provided in this embodiment is an improvement on the method provided in Embodiment 1.
[0083] In this embodiment, the browser kernel used by the client is IE10 version as an example for illustration. figure 2 It is a flowchart of a method for writing cookie information according to an embodiment of the present invention, which is used for writing cookie information when the user logs in for the first time, including steps S201 to S207.
[0084] First, step S201 is executed, that is, a trigger instruction for saving cookie information is received.
[0085] Optionally, in this embodiment, the trigger instruction for saving cookie information may include:
[0086] The user uses an account to log in to a website of a specific domain name for the first time, for example, it may be that the user logs in to a specific web game using a sma...
Embodiment 3
[0169] Figure 4 It is a structural block diagram of a device for processing cookie information according to an embodiment of the present invention. The device 600 is used to access the same website through a browser using at least two accounts. The device 600 includes:
[0170] The first instruction receiving module 610 is configured to receive a trigger instruction for storing cookie information;
[0171] The first information obtaining module 620 is configured to obtain the website address of the website logged in by the user through the account name and the cookie information formed by this login;
[0172] The mapping establishment module 630 is configured to establish a mapping relationship between account names, URLs and cookie information;
[0173] The storage module 640 is configured to store the mapping relationship in isolation.
[0174] Optionally, the first information acquiring module 620 is further configured to acquire the URL of the website that the user logs...