CN104468834A - Method and device for processing Cookie data and browser client side - Google Patents

Method and device for processing Cookie data and browser client side Download PDF

Info

Publication number
CN104468834A
CN104468834A CN201410835064.3A CN201410835064A CN104468834A CN 104468834 A CN104468834 A CN 104468834A CN 201410835064 A CN201410835064 A CN 201410835064A CN 104468834 A CN104468834 A CN 104468834A
Authority
CN
China
Prior art keywords
domain name
browser kernel
cookie data
write operation
read
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410835064.3A
Other languages
Chinese (zh)
Other versions
CN104468834B (en
Inventor
陈卓
宗小斌
王天平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410835064.3A priority Critical patent/CN104468834B/en
Publication of CN104468834A publication Critical patent/CN104468834A/en
Application granted granted Critical
Publication of CN104468834B publication Critical patent/CN104468834B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Abstract

The invention provides a method and device for processing Cookie data and a browser client side. The method for processing the Cookie data comprises the following steps that in the browser client side, a first browser kernel is used to access to a webpage with a first domain name in a loaded mode, and the Cookie data of the first domain name in a preset file path are read/written; a switching instruction of switching the first browser kernel into a second browser kernel is received; the second browser kernel is used to launch a network request for the webpage with the first domain name and/or receive a network response of the webpage with the first domain name; the operation of reading/writing the Cookie data of the first domain name under the second browser kernel is intercepted, and the operation of reading/writing the Cookie data of the first domain name under the second browser kernel is correspondingly redirected to the operation of reading/writing the Cookie data of the first domain name in the preset file path.

Description

Carry out the method for Cookie data process, device and browser client
Technical field
The invention belongs to browser technology field, particularly relate to a kind of method, device and the browser client that carry out Cookie data process.
Background technology
The middle-size and small-size text cookie information of browser refers to that website is in order to distinguish that user identity is stored in the data on user local terminal (Client Side), a kind ofly can allow Website server data storing to the hard disk of user side or internal memory, and the technology of data is read from the computer of user side, each Website server can only store the cookie information of to one's name domain name on the computer of user side, and this cookie information can only be read by browser by the Website server that this domain name is pointed to.
Along with the fast development of network technology, increasing people begins through browser receiving and dispatching mail, logs in personal space, plays online game, logs in forum and microblogging etc.Log in for the ease of user, reduce the troublesome operation that each login all needs to input account and password, in Internet protocol RFC2109, define the use of corresponding cookie information in browser.
In the internet site employing this technology, as long as user has carried out once logging in the website of a certain domain name in this locality, the cookie information for recording log-on message can be produced in this locality, and be kept at user side.When user's second time logs in this website, there is the cookie information corresponding with this website if local, then this cookie information is dealt into server and verifies, if the verification passes, then allow to log in this website.
But in current cookie information technology, cookie information and the domain name corresponding stored of user side, also, for each domain name, a cookie information can only be preserved in this locality.This has just occurred that user goes out the situation of active cookie when using double-core browser to switch Web page loading, needs user again to log in again, is unfavorable for promoting Consumer's Experience.
Summary of the invention
In view of the above problems, propose the present invention to provide a kind of to overcome the problems referred to above or the main purpose of the present invention that solves the problem at least in part and be to provide a kind of method, device and the browser client that carry out Cookie data process.
According to one aspect of the present invention, a kind of method of carrying out Cookie data process in browser client is provided, comprise: in browser client, use the first browser kernel to load the webpage of access first domain name, and read/write operation is carried out to the Cookie data of the first domain name under profile path; Receive the switching command being switched to the second browser kernel from the first browser kernel; The second browser kernel is used to initiate the network response of the network request of the webpage of the first domain name and/or the webpage of reception the first domain name; Tackle the read/write operation of the Cookie data for the first domain name under the second browser kernel, and the read/write operation for the Cookie data of the first domain name under described second browser kernel is redirected to the read/write operation of the Cookie data to the first domain name under described profile path accordingly.
Wherein, described first browser kernel is webkit kernel, and described second browser kernel is the kernel of IE browser.
Wherein, the described step write operation for the Cookie data of the first domain name under described second browser kernel being redirected to accordingly the write operation of the Cookie data to the first domain name under described profile path, comprise: be based upon the mapping relations between the webpage title of the first domain name under the second browser kernel and the cookie information of the first domain name, and isolation be kept at described profile path under.
Wherein, also comprise: receive the triggering command of preserving described cookie information, the cookie information that the webpage title of the first domain name of the login of acquisition user under the second browser kernel and this login are formed.
Wherein, the described step read operation for the Cookie data of the first domain name under described second browser kernel being redirected to accordingly the read operation of the Cookie data to the first domain name under described profile path, comprise: receive the triggering command reading cookie information, utilization is kept at the mapping relations under profile path, and the cookie information that the webpage name lookup of the first domain name of the login of foundation under the second browser kernel is corresponding also reads.
Wherein, the read operation of tackling the Cookie data for the first domain name under the second browser kernel comprises: the read operation carried out when being the cookie data of filling in the header of http message during network request.
Wherein, the write operation tackling the Cookie data for the first domain name under the second browser kernel comprises: be the write operation when cookie data in the header field of http message being written in cookie file during network response.
Wherein, also comprise: receive the switching command being switched to the first browser kernel from the second browser kernel; Stop the read/write operation of the Cookie data for the first domain name under interception second browser kernel, directly carry out the read/write operation to the cookie data in described profile path under the first browser kernel.
Wherein, described switching command is that the second browser kernel be sent in other equipment carries out the webpage of loading first domain name or initiates the instruction of map network request.
Wherein, also comprise: upload after described cookie data are encrypted and be saved in the profile path of cloud server.
According to another aspect of the present invention, provide a kind of browser client, comprising: interface assembly, it is configured to described browser client and draws interactive interface, receives the information of input and/or output display and user interactions; Networking component, it is configured to pass interface assembly and triggers the network request of initiating; Browser kernel assembly, it is configured to process networking component and triggers the network request of initiating, and resolves that play up in rear formation web displaying window can the web data of loaded and displayed; Described browser kernel assembly comprises further: loading processing module, for the webpage using the first browser kernel to load access first domain name in browser client, and carries out read/write operation to the Cookie data of the first domain name under profile path; Switching command receives module, for receiving the switching command being switched to the second browser kernel from the first browser kernel; Cookie data read/write operation module, for the network response using the second browser kernel to initiate the network request of the webpage of the first domain name and/or the webpage of reception the first domain name, tackle the read/write operation of the Cookie data for the first domain name under the second browser kernel, and the read/write operation for the Cookie data of the first domain name under described second browser kernel is redirected to the read/write operation of the Cookie data to the first domain name under described profile path accordingly.
Wherein, described first browser kernel is webkit kernel, and described second browser kernel is the kernel of IE browser.
Wherein, described Cookie data read/write operation module also for, be based upon the mapping relations between the webpage title of the first domain name under the second browser kernel and the cookie information of the first domain name, and isolation be kept at described profile path under.
Wherein, described Cookie data read/write operation module also for, receive and preserve the triggering command of described cookie information, obtain the webpage title of the first domain name of the login of user under the second browser kernel and this logs in the cookie information formed.
Wherein, described Cookie data read/write operation module also for, receive the triggering command reading cookie information, utilization is kept at the mapping relations under profile path, and the cookie information that the webpage name lookup of the first domain name of the login of foundation under the second browser kernel is corresponding also reads.
Wherein, the read operation of the Cookie data for the first domain name that described Cookie data read/write operation module is tackled under the second browser kernel comprises: the read operation carried out when being the cookie data of filling in the header of http message during network request.
Wherein, the write operation of the Cookie data for the first domain name that described Cookie data read/write operation module is tackled under the second browser kernel comprises: be the write operation when cookie data in the header field of http message being written in cookie file during network response.
Wherein, described Cookie data read/write operation module also for, receive the switching command being switched to the first browser kernel from the second browser kernel, stop the read/write operation of the Cookie data for the first domain name under interception second browser kernel, directly carry out the read/write operation to the cookie data in described profile path under the first browser kernel.
Wherein, the switching command that described switching command reception module receives is that the second browser kernel be sent in other equipment carries out the webpage of loading first domain name or initiates the instruction of map network request.
Wherein, described loading processing module also for, upload after described cookie data are encrypted and be saved in the profile path of cloud server.
According to another aspect of the invention, a kind of device carrying out Cookie data process is provided, comprise: processor, in this processor, load operating has loading processing module, switching command to receive module, Cookie data read/write operation module, wherein: loading processing module, for the webpage using the first browser kernel to load access first domain name in browser client, and read/write operation is carried out to the Cookie data of the first domain name under profile path; Switching command receives module, for receiving the switching command being switched to the second browser kernel from the first browser kernel; Cookie data read/write operation module, for the network response using the second browser kernel to initiate the network request of the webpage of the first domain name and/or the webpage of reception the first domain name, tackle the read/write operation of the Cookie data for the first domain name under the second browser kernel, and the read/write operation for the Cookie data of the first domain name under described second browser kernel is redirected to the read/write operation of the Cookie data to the first domain name under described profile path accordingly.
Wherein, described first browser kernel is webkit kernel, and described second browser kernel is the kernel of IE browser.
Wherein, described Cookie data read/write operation module also for, be based upon the mapping relations between the webpage title of the first domain name under the second browser kernel and the cookie information of the first domain name, and isolation be kept at described profile path under.
Wherein, described Cookie data read/write operation module also for, receive and preserve the triggering command of described cookie information, obtain the webpage title of the first domain name of the login of user under the second browser kernel and this logs in the cookie information formed.
Wherein, described Cookie data read/write operation module also for, receive the triggering command reading cookie information, utilization is kept at the mapping relations under profile path, and the cookie information that the webpage name lookup of the first domain name of the login of foundation under the second browser kernel is corresponding also reads.
Wherein, the read operation of the Cookie data for the first domain name that described Cookie data read/write operation module is tackled under the second browser kernel comprises: the read operation carried out when being the cookie data of filling in the header of http message during network request.
Wherein, the write operation of the Cookie data for the first domain name that described Cookie data read/write operation module is tackled under the second browser kernel comprises: be the write operation when cookie data in the header field of http message being written in cookie file during network response.
Wherein, described Cookie data read/write operation module also for, receive the switching command being switched to the first browser kernel from the second browser kernel, stop the read/write operation of the Cookie data for the first domain name under interception second browser kernel, directly carry out the read/write operation to the cookie data in described profile path under the first browser kernel.
Wherein, the switching command that described switching command reception module receives is that the second browser kernel be sent in other equipment carries out the webpage of loading first domain name or initiates the instruction of map network request.
Wherein, described loading processing module also for, upload after described cookie data are encrypted and be saved in the profile path of cloud server.
According to technical scheme of the present invention, by tackling the read/write operation of the Cookie data for the first domain name under the second browser kernel, and the read/write operation for the Cookie data of the first domain name under described second browser kernel is redirected to accordingly the read/write operation of the Cookie data to the first domain name under described profile path, realize can using with a cookie data when double-core browser switches Web page loading, do not need user again to log in again.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 is the flow chart of the method for carrying out Cookie data process in the browser client according to the embodiment of the present invention;
Fig. 2 is the structured flowchart carrying out the device of video data loading according to the embodiment of the present invention;
Fig. 3 is the structured flowchart of the browser client according to the embodiment of the present invention.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
According to the embodiment of the present invention, provide a kind of method of carrying out Cookie data process in browser client, the method is applied to the various clients with client browser, and this client-side is as being Web browser client.It should be noted that, above-mentioned client refers to corresponding with server, is arranged on for user provides the application program of service in terminal, e.g., is arranged on the application program on terminal or intelligent mobile phone terminal.
Fig. 1 is the flow chart carrying out the method for Cookie data process according to an embodiment of the invention in browser client.As shown in Figure 1, the method for carrying out Cookie data process comprises:
Step S102, uses the first browser kernel to load the webpage of access first domain name, and carries out read/write operation to the Cookie data of the first domain name under profile path in browser client;
Wherein, described profile path can be the path of the file arranged in browser client this locality; Can also be the profile path at the cloud server corresponding with browser client, such as, upload after the cookie data of the first domain name being encrypted and be saved in the profile path of cloud server.
Step S104, receives the switching command being switched to the second browser kernel from the first browser kernel;
Wherein, described switching command both can be that the second browser kernel be sent in this equipment carries out the webpage of loading first domain name or initiates the instruction of map network request, can also be that the second browser kernel be sent in other equipment carries out the webpage of loading first domain name or initiates the instruction of map network request.In section Example of the present invention, described first browser kernel is webkit kernel, and described second browser kernel is the kernel of IE browser.
Step S106, uses the second browser kernel to initiate the network response of the network request of the webpage of the first domain name and/or the webpage of reception the first domain name; Tackle the read/write operation of the Cookie data for the first domain name under the second browser kernel, and the read/write operation for the Cookie data of the first domain name under described second browser kernel is redirected to the read/write operation of the Cookie data to the first domain name under described profile path accordingly.
HTTP (Hyper Text Transfer Protocol) i.e. HTML (Hypertext Markup Language) is the puppy parc of current web-page transmission.Http protocol have employed request/response model, and browser or other clients send request, and server is given and response.In step s 106, the read operation of the Cookie data for the first domain name under described interception second browser kernel is, the read operation carried out when being the cookie data of filling in the header of http message during network request, namely, when HTTP request sends, web server can be sent to together being kept at this request domain all cookie values under one's name; The write operation of the Cookie data for the first domain name under described interception second browser kernel is, is the write operation when cookie data in the header field of http message being written in cookie file, namely arranges HttpCookie during network response.In actual applications, the intercept process of the read/write operation of the Cookie data for the first domain name under above-mentioned interception second browser kernel is carried out by browser Frame host process.
Accordingly, above-mentioned redirect operation also comprises write operation and read operation.Wherein, the write operation for the Cookie data of the first domain name under described second browser kernel is redirected to accordingly the step of the write operation of the Cookie data to the first domain name under described profile path, comprises:
Be based upon the mapping relations between the webpage title of the first domain name under the second browser kernel and the cookie information of the first domain name, and isolation be kept at described profile path under;
Receive the triggering command of preserving described cookie information, the cookie information that the webpage title of the first domain name of the login of acquisition user under the second browser kernel and this login are formed.
And the described step read operation for the Cookie data of the first domain name under described second browser kernel being redirected to accordingly the read operation of the Cookie data to the first domain name under described profile path, comprising:
Receive the triggering command reading cookie information, utilization is kept at the mapping relations under profile path, and the cookie information that the webpage name lookup of the first domain name of the login of foundation under the second browser kernel is corresponding also reads.
Completed the switching being switched to the second browser kernel from the first browser kernel by above-mentioned processing procedure, thus the cookie data under the first browser kernel can be used under the second browser kernel to carry out loading the webpage of access first domain name.
Afterwards, if receive the switching command being switched to the first browser kernel from the second browser kernel, first the read/write operation of the Cookie data for the first domain name under interception second browser kernel is stopped, then directly carry out the read/write operation to the cookie data in described profile path under the first browser kernel, namely return to the webpage that use first browser kernel loads access first domain name.
According to embodiments of the invention, also provide a kind of device carrying out Cookie data process.
With reference to figure 2, it is the structured flowchart of the device carrying out video data loading according to an embodiment of the invention, as shown in Figure 2, the described device 200 carrying out Cookie data process includes a processor, in this processor, load operating has loading processing module 210, switching command to receive module 220, Cookie data read/write operation module 230, is described below in detail the 26S Proteasome Structure and Function of each module.
Loading processing module 210, for the webpage using the first browser kernel to load access first domain name in browser client, and carries out read/write operation to the Cookie data of the first domain name under profile path.
Further, described loading processing module 210 also for, upload after described cookie data are encrypted and be saved in the profile path of cloud server.
Switching command receives module 220, for receiving the switching command being switched to the second browser kernel from the first browser kernel.Wherein, the described switching command that described switching command reception module 220 receives both can be that the second browser kernel be sent in this equipment carries out the webpage of loading first domain name or initiates the instruction of map network request, can also be that the second browser kernel be sent in other equipment carries out the webpage of loading first domain name or initiates the instruction of map network request.In an embodiment of the present invention, described first browser kernel is webkit kernel, and described second browser kernel is the kernel of IE browser.
Cookie data read/write operation module 230, for the network response using the second browser kernel to initiate the network request of the webpage of the first domain name and/or the webpage of reception the first domain name, tackle the read/write operation of the Cookie data for the first domain name under the second browser kernel, and the read/write operation for the Cookie data of the first domain name under described second browser kernel is redirected to the read/write operation of the Cookie data to the first domain name under described profile path accordingly.
Further, described loading processing module 210 also for, be based upon the mapping relations between the webpage title of the first domain name under the second browser kernel and the cookie information of the first domain name, and isolation be kept at described profile path under.
Further, described Cookie data read/write operation module 230 also for, receive the triggering command of preserving described cookie information, the cookie information that the webpage title of the first domain name of the login of acquisition user under the second browser kernel and this login are formed.
Further, described Cookie data read/write operation module 230 also for, receive the triggering command reading cookie information, utilization is kept at the mapping relations under profile path, and the cookie information that the webpage name lookup of the first domain name of the login of foundation under the second browser kernel is corresponding also reads.
Further, the read operation of the Cookie data for the first domain name that described Cookie data read/write operation module is tackled under the second browser kernel comprises: the read operation carried out when being the cookie data of filling in the header of http message during network request.
Further, the write operation of the Cookie data for the first domain name that described Cookie data read/write operation module is tackled under the second browser kernel comprises: be the write operation when cookie data in the header field of http message being written in cookie file during network response.
Further, described Cookie data read/write operation module also for, receive the switching command being switched to the first browser kernel from the second browser kernel, stop the read/write operation of the Cookie data for the first domain name under interception second browser kernel, directly carry out the read/write operation to the cookie data in described profile path under the first browser kernel.
Device described above is corresponding with the process carrying out the method for Cookie data process described before, therefore, about more detailed ins and outs, and can see the method described before.
According to embodiments of the invention, additionally provide a kind of browser client.
With reference to figure 3, be the structured flowchart of the browser client according to the embodiment of the present invention, as shown in Figure 3, described browser client 300 at least comprises: interface assembly 310, networking component 320, browser kernel assembly 330.
Wherein, interface assembly 310, it is configured to described browser client and draws interactive interface, receives the information of input and/or output display and user interactions; Networking component 320, it is configured to pass interface assembly and triggers the network request of initiating; Browser kernel assembly 330, it is configured to process networking component and triggers the network request of initiating, and resolves that play up in rear formation web displaying window can the web data of loaded and displayed;
Described browser kernel assembly 330 comprises further:
Loading processing module 331, for the webpage using the first browser kernel to load access first domain name in browser client, and carries out read/write operation to the Cookie data of the first domain name under profile path; Wherein, described loading processing module 331 also for, upload after described cookie data are encrypted and be saved in the profile path of cloud server.
Switching command receives module 332, for receiving the switching command being switched to the second browser kernel from the first browser kernel; Wherein, the described switching command that described switching command reception module 220 receives both can be that the second browser kernel be sent in this equipment carries out the webpage of loading first domain name or initiates the instruction of map network request, can also be that the second browser kernel be sent in other equipment carries out the webpage of loading first domain name or initiates the instruction of map network request.In an embodiment of the present invention, described first browser kernel is webkit kernel, and described second browser kernel is the kernel of IE browser.
Cookie data read/write operation module 333, for the network response using the second browser kernel to initiate the network request of the webpage of the first domain name and/or the webpage of reception the first domain name, tackle the read/write operation of the Cookie data for the first domain name under the second browser kernel, and the read/write operation for the Cookie data of the first domain name under described second browser kernel is redirected to the read/write operation of the Cookie data to the first domain name under described profile path accordingly.
Further, described Cookie data read/write operation module 333 also for, be based upon the mapping relations between the webpage title of the first domain name under the second browser kernel and the cookie information of the first domain name, and isolation be kept at described profile path under.
Further, described Cookie data read/write operation module 333 also for, receive the triggering command of preserving described cookie information, the cookie information that the webpage title of the first domain name of the login of acquisition user under the second browser kernel and this login are formed.
Further, described Cookie data read/write operation module 333 also for, receive the triggering command reading cookie information, utilization is kept at the mapping relations under profile path, and the cookie information that the webpage name lookup of the first domain name of the login of foundation under the second browser kernel is corresponding also reads.
Further, the read operation of the Cookie data for the first domain name that described Cookie data read/write operation module 333 is tackled under the second browser kernel comprises: the read operation carried out when being the cookie data of filling in the header of http message during network request.
Further, the write operation of the Cookie data for the first domain name that described Cookie data read/write operation module 333 is tackled under the second browser kernel comprises: be the write operation when cookie data in the header field of http message being written in cookie file during network response.
Further, described Cookie data read/write operation module 333 also for, receive the switching command being switched to the first browser kernel from the second browser kernel, stop the read/write operation of the Cookie data for the first domain name under interception second browser kernel, directly carry out the read/write operation to the cookie data in described profile path under the first browser kernel.
Browser client described above is corresponding with the process carrying out the method for Cookie data process described before, therefore, about more detailed ins and outs, and can see the method described before.
In sum, according to technique scheme of the present invention, by tackling the read/write operation of the Cookie data for the first domain name under the second browser kernel, and the read/write operation for the Cookie data of the first domain name under described second browser kernel is redirected to accordingly the read/write operation of the Cookie data to the first domain name under described profile path, realize can using with a cookie data when double-core browser switches Web page loading, do not need user again to log in again.
Intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with display at this algorithm provided.Various general-purpose system also can with use based on together with this teaching.According to description above, the structure constructed required by this type systematic is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In specification provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary compound mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions of carrying out the some or all parts in the device of Cookie data process that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the embodiment of the present invention.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computer of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.
Embodiments of the invention disclose a kind of method of carrying out Cookie data process in A1, browser client, comprise: in browser client, use the first browser kernel to load the webpage of access first domain name, and read/write operation is carried out to the Cookie data of the first domain name under profile path; Receive the switching command being switched to the second browser kernel from the first browser kernel; The second browser kernel is used to initiate the network response of the network request of the webpage of the first domain name and/or the webpage of reception the first domain name; Tackle the read/write operation of the Cookie data for the first domain name under the second browser kernel, and the read/write operation for the Cookie data of the first domain name under described second browser kernel is redirected to the read/write operation of the Cookie data to the first domain name under described profile path accordingly.A2, method according to A1, wherein, described first browser kernel is webkit kernel, and described second browser kernel is the kernel of IE browser.A3, method according to A1, wherein, the described step write operation for the Cookie data of the first domain name under described second browser kernel being redirected to accordingly the write operation of the Cookie data to the first domain name under described profile path, comprise: be based upon the mapping relations between the webpage title of the first domain name under the second browser kernel and the cookie information of the first domain name, and isolation be kept at described profile path under.A4, method according to A3, wherein, also comprise: receive the triggering command of preserving described cookie information, obtains the webpage title of the first domain name of the login of user under the second browser kernel and this logs in the cookie information formed.A5, method according to A3, wherein, the described step read operation for the Cookie data of the first domain name under described second browser kernel being redirected to accordingly the read operation of the Cookie data to the first domain name under described profile path, comprise: receive the triggering command reading cookie information, utilization is kept at the mapping relations under profile path, and the cookie information that the webpage name lookup of the first domain name of the login of foundation under the second browser kernel is corresponding also reads.A6, method according to A1, wherein, the read operation of tackling the Cookie data for the first domain name under the second browser kernel comprises: the read operation carried out when being the cookie data of filling in the header of http message during network request.A7, method according to A1, wherein, the write operation tackling the Cookie data for the first domain name under the second browser kernel comprises: be the write operation when cookie data in the header field of http message being written in cookie file during network response.A8, method according to A1, wherein, also comprise: receive the switching command being switched to the first browser kernel from the second browser kernel; Stop the read/write operation of the Cookie data for the first domain name under interception second browser kernel, directly carry out the read/write operation to the cookie data in described profile path under the first browser kernel.A9, method according to A1, wherein, described switching command is that the second browser kernel be sent in other equipment carries out the webpage of loading first domain name or initiates the instruction of map network request.A10, method according to A1, wherein, also comprise: upload after being encrypted described cookie data and be saved in the profile path of cloud server.
The embodiment of the present invention further discloses B11, a kind of browser client, comprising: interface assembly, and it is configured to described browser client and draws interactive interface, receives the information of input and/or output display and user interactions; Networking component, it is configured to pass interface assembly and triggers the network request of initiating; Browser kernel assembly, it is configured to process networking component and triggers the network request of initiating, and resolves that play up in rear formation web displaying window can the web data of loaded and displayed; Described browser kernel assembly comprises further: loading processing module, for the webpage using the first browser kernel to load access first domain name in browser client, and carries out read/write operation to the Cookie data of the first domain name under profile path; Switching command receives module, for receiving the switching command being switched to the second browser kernel from the first browser kernel; Cookie data read/write operation module, for the network response using the second browser kernel to initiate the network request of the webpage of the first domain name and/or the webpage of reception the first domain name, tackle the read/write operation of the Cookie data for the first domain name under the second browser kernel, and the read/write operation for the Cookie data of the first domain name under described second browser kernel is redirected to the read/write operation of the Cookie data to the first domain name under described profile path accordingly.B12, browser client according to B11, wherein, described first browser kernel is webkit kernel, and described second browser kernel is the kernel of IE browser.B13, browser client according to B11, wherein, described Cookie data read/write operation module also for, be based upon the mapping relations between the webpage title of the first domain name under the second browser kernel and the cookie information of the first domain name, and isolation be kept at described profile path under.B14, browser client according to B13, wherein, described Cookie data read/write operation module also for, receive the triggering command of preserving described cookie information, the cookie information that the webpage title of the first domain name of the login of acquisition user under the second browser kernel and this login are formed.B15, browser client according to B13, wherein, described Cookie data read/write operation module also for, receive the triggering command reading cookie information, utilization is kept at the mapping relations under profile path, and the cookie information that the webpage name lookup of the first domain name of the login of foundation under the second browser kernel is corresponding also reads.B16, browser client according to B11, wherein, the read operation of the Cookie data for the first domain name that described Cookie data read/write operation module is tackled under the second browser kernel comprises: the read operation carried out when being the cookie data of filling in the header of http message during network request.B17, browser client according to B11, wherein, the write operation of the Cookie data for the first domain name that described Cookie data read/write operation module is tackled under the second browser kernel comprises: be the write operation when cookie data in the header field of http message being written in cookie file during network response.B18, browser client according to B11, wherein, described Cookie data read/write operation module also for, receive the switching command being switched to the first browser kernel from the second browser kernel, stop the read/write operation of the Cookie data for the first domain name under interception second browser kernel, directly carry out the read/write operation to the cookie data in described profile path under the first browser kernel.B19, browser client according to B11, wherein, it is that the second browser kernel be sent in other equipment carries out the webpage of loading first domain name or initiates the instruction of map network request that described switching command receives the switching command that module receives.B20, browser client according to B11, wherein, described loading processing module also for, upload after described cookie data are encrypted and be saved in the profile path of cloud server.
The embodiment of the present invention further discloses C21, a kind of device carrying out Cookie data process, comprise: processor, in this processor, load operating has loading processing module, switching command to receive module, Cookie data read/write operation module, wherein: loading processing module, for the webpage using the first browser kernel to load access first domain name in browser client, and read/write operation is carried out to the Cookie data of the first domain name under profile path; Switching command receives module, for receiving the switching command being switched to the second browser kernel from the first browser kernel; Cookie data read/write operation module, for the network response using the second browser kernel to initiate the network request of the webpage of the first domain name and/or the webpage of reception the first domain name, tackle the read/write operation of the Cookie data for the first domain name under the second browser kernel, and the read/write operation for the Cookie data of the first domain name under described second browser kernel is redirected to the read/write operation of the Cookie data to the first domain name under described profile path accordingly.C22, device according to C21, wherein, described first browser kernel is webkit kernel, and described second browser kernel is the kernel of IE browser.C23, device according to C21, wherein, described Cookie data read/write operation module also for, be based upon the mapping relations between the webpage title of the first domain name under the second browser kernel and the cookie information of the first domain name, and isolation be kept at described profile path under.C24, device according to C23, wherein, described Cookie data read/write operation module also for, receive and preserve the triggering command of described cookie information, obtain the webpage title of the first domain name of the login of user under the second browser kernel and this logs in the cookie information formed.C25, device according to C23, wherein, described Cookie data read/write operation module also for, receive the triggering command reading cookie information, utilization is kept at the mapping relations under profile path, and the cookie information that the webpage name lookup of the first domain name of the login of foundation under the second browser kernel is corresponding also reads.C26, device according to C21, wherein, the read operation of the Cookie data for the first domain name that described Cookie data read/write operation module is tackled under the second browser kernel comprises: the read operation carried out when being the cookie data of filling in the header of http message during network request.C27, device according to C21, wherein, the write operation of the Cookie data for the first domain name that described Cookie data read/write operation module is tackled under the second browser kernel comprises: be the write operation when cookie data in the header field of http message being written in cookie file during network response.C28, device according to C21, wherein, described Cookie data read/write operation module also for, receive the switching command being switched to the first browser kernel from the second browser kernel, stop the read/write operation of the Cookie data for the first domain name under interception second browser kernel, directly carry out the read/write operation to the cookie data in described profile path under the first browser kernel.C29, device according to C21, wherein, it is that the second browser kernel be sent in other equipment carries out the webpage of loading first domain name or initiates the instruction of map network request that described switching command receives the switching command that module receives.C30, device according to C21, wherein, described loading processing module also for, store module, for uploading after being encrypted described cookie data and being saved in the profile path of cloud server.

Claims (10)

1. carry out a method for Cookie data process in browser client, comprising:
In browser client, use the first browser kernel to load the webpage of access first domain name, and read/write operation is carried out to the Cookie data of the first domain name under profile path;
Receive the switching command being switched to the second browser kernel from the first browser kernel;
The second browser kernel is used to initiate the network response of the network request of the webpage of the first domain name and/or the webpage of reception the first domain name; Tackle the read/write operation of the Cookie data for the first domain name under the second browser kernel, and the read/write operation for the Cookie data of the first domain name under described second browser kernel is redirected to the read/write operation of the Cookie data to the first domain name under described profile path accordingly.
2. method according to claim 1, wherein, described first browser kernel is webkit kernel, and described second browser kernel is the kernel of IE browser.
3. method according to claim 1, wherein, the described step write operation for the Cookie data of the first domain name under described second browser kernel being redirected to accordingly the write operation of the Cookie data to the first domain name under described profile path, comprising:
Be based upon the mapping relations between the webpage title of the first domain name under the second browser kernel and the cookie information of the first domain name, and isolation be kept at described profile path under.
4. method according to claim 3, wherein, also comprises:
Receive the triggering command of preserving described cookie information, the cookie information that the webpage title of the first domain name of the login of acquisition user under the second browser kernel and this login are formed.
5. method according to claim 3, wherein, the described step read operation for the Cookie data of the first domain name under described second browser kernel being redirected to accordingly the read operation of the Cookie data to the first domain name under described profile path, comprising:
Receive the triggering command reading cookie information, utilization is kept at the mapping relations under profile path, and the cookie information that the webpage name lookup of the first domain name of the login of foundation under the second browser kernel is corresponding also reads.
6. method according to claim 1, wherein, the read operation of tackling the Cookie data for the first domain name under the second browser kernel comprises: the read operation carried out when being the cookie data of filling in the header of http message during network request.
7. method according to claim 1, wherein, the write operation tackling the Cookie data for the first domain name under the second browser kernel comprises: be the write operation when cookie data in the header field of http message being written in cookie file during network response.
8. method according to claim 1, wherein, also comprises:
Receive the switching command being switched to the first browser kernel from the second browser kernel;
Stop the read/write operation of the Cookie data for the first domain name under interception second browser kernel, directly carry out the read/write operation to the cookie data in described profile path under the first browser kernel.
9. a browser client, comprising:
Interface assembly, it is configured to described browser client and draws interactive interface, receives the information of input and/or output display and user interactions;
Networking component, it is configured to pass interface assembly and triggers the network request of initiating;
Browser kernel assembly, it is configured to process networking component and triggers the network request of initiating, and resolves that play up in rear formation web displaying window can the web data of loaded and displayed;
Described browser kernel assembly comprises further:
Loading processing module, for the webpage using the first browser kernel to load access first domain name in browser client, and carries out read/write operation to the Cookie data of the first domain name under profile path;
Switching command receives module, for receiving the switching command being switched to the second browser kernel from the first browser kernel;
Cookie data read/write operation module, for the network response using the second browser kernel to initiate the network request of the webpage of the first domain name and/or the webpage of reception the first domain name, tackle the read/write operation of the Cookie data for the first domain name under the second browser kernel, and the read/write operation for the Cookie data of the first domain name under described second browser kernel is redirected to the read/write operation of the Cookie data to the first domain name under described profile path accordingly.
10. carry out a device for Cookie data process, comprising:
Processor, in this processor, load operating has loading processing module, switching command to receive module, Cookie data read/write operation module, wherein:
Loading processing module, for the webpage using the first browser kernel to load access first domain name in browser client, and carries out read/write operation to the Cookie data of the first domain name under profile path;
Switching command receives module, for receiving the switching command being switched to the second browser kernel from the first browser kernel;
Cookie data read/write operation module, for the network response using the second browser kernel to initiate the network request of the webpage of the first domain name and/or the webpage of reception the first domain name, tackle the read/write operation of the Cookie data for the first domain name under the second browser kernel, and the read/write operation for the Cookie data of the first domain name under described second browser kernel is redirected to the read/write operation of the Cookie data to the first domain name under described profile path accordingly.
CN201410835064.3A 2014-12-26 2014-12-26 Carry out the method, apparatus and browser client of Cookie data processing Expired - Fee Related CN104468834B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410835064.3A CN104468834B (en) 2014-12-26 2014-12-26 Carry out the method, apparatus and browser client of Cookie data processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410835064.3A CN104468834B (en) 2014-12-26 2014-12-26 Carry out the method, apparatus and browser client of Cookie data processing

Publications (2)

Publication Number Publication Date
CN104468834A true CN104468834A (en) 2015-03-25
CN104468834B CN104468834B (en) 2017-12-26

Family

ID=52914185

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410835064.3A Expired - Fee Related CN104468834B (en) 2014-12-26 2014-12-26 Carry out the method, apparatus and browser client of Cookie data processing

Country Status (1)

Country Link
CN (1) CN104468834B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105354337A (en) * 2015-12-08 2016-02-24 北京奇虎科技有限公司 Web crawler implementation method and web crawler system
CN105550596A (en) * 2015-12-23 2016-05-04 北京奇虎科技有限公司 Access processing method and apparatus
CN106919594A (en) * 2015-12-25 2017-07-04 北京奇虎科技有限公司 Accounts information sharing method between different browsers
CN106921698A (en) * 2015-12-25 2017-07-04 北京奇虎科技有限公司 Accounts information sharing means between different browsers
CN106921622A (en) * 2015-12-25 2017-07-04 北京奇虎科技有限公司 The processing method and processing device of cookie information
WO2017120876A1 (en) * 2016-01-15 2017-07-20 杨瑛 Method for collecting data when restarting webpage, and electronic device
CN108279970A (en) * 2017-12-28 2018-07-13 北京海泰方圆科技股份有限公司 The switching method and apparatus of browser kernel
CN109634753A (en) * 2018-11-02 2019-04-16 北京海泰方圆科技股份有限公司 Switch data processing method, device, terminal and the storage medium of browser kernel
CN110955510A (en) * 2019-12-11 2020-04-03 腾讯科技(深圳)有限公司 Isolation processing method and related device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624891A (en) * 2012-03-08 2012-08-01 腾讯科技(深圳)有限公司 Method for switching kernel of browser and corresponding browser
CN102682080A (en) * 2012-03-31 2012-09-19 奇智软件(北京)有限公司 Cookie information sharing method and system
CN103414745A (en) * 2013-07-05 2013-11-27 惠州Tcl移动通信有限公司 Mobile terminal cross-browser login method and device
CN103500210A (en) * 2013-09-27 2014-01-08 北京奇虎科技有限公司 Method, device and browser for carrying out webpage loading
CN103530329A (en) * 2013-09-27 2014-01-22 北京奇虎科技有限公司 Method and device for performing webpage loading and browsers
CN103618807A (en) * 2013-11-08 2014-03-05 北京奇虎科技有限公司 Method and device for processing cookie information
CN103955477A (en) * 2014-03-31 2014-07-30 北京奇虎科技有限公司 Method for writing and reading Cookie information in browser, device and browser

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624891A (en) * 2012-03-08 2012-08-01 腾讯科技(深圳)有限公司 Method for switching kernel of browser and corresponding browser
CN102682080A (en) * 2012-03-31 2012-09-19 奇智软件(北京)有限公司 Cookie information sharing method and system
CN103414745A (en) * 2013-07-05 2013-11-27 惠州Tcl移动通信有限公司 Mobile terminal cross-browser login method and device
CN103500210A (en) * 2013-09-27 2014-01-08 北京奇虎科技有限公司 Method, device and browser for carrying out webpage loading
CN103530329A (en) * 2013-09-27 2014-01-22 北京奇虎科技有限公司 Method and device for performing webpage loading and browsers
CN103618807A (en) * 2013-11-08 2014-03-05 北京奇虎科技有限公司 Method and device for processing cookie information
CN103955477A (en) * 2014-03-31 2014-07-30 北京奇虎科技有限公司 Method for writing and reading Cookie information in browser, device and browser

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ENET硅谷动力: "双核切换无需重复下载!搜狗浏览器双核共享缓存", 《HTTP://WWW.ENET.COM.CN/ARTICLE/2012/1016/A20121016175699.SHTML》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105354337A (en) * 2015-12-08 2016-02-24 北京奇虎科技有限公司 Web crawler implementation method and web crawler system
CN105550596A (en) * 2015-12-23 2016-05-04 北京奇虎科技有限公司 Access processing method and apparatus
CN105550596B (en) * 2015-12-23 2018-10-16 北京奇虎科技有限公司 A kind of access processing method and device
CN106919594A (en) * 2015-12-25 2017-07-04 北京奇虎科技有限公司 Accounts information sharing method between different browsers
CN106921698A (en) * 2015-12-25 2017-07-04 北京奇虎科技有限公司 Accounts information sharing means between different browsers
CN106921622A (en) * 2015-12-25 2017-07-04 北京奇虎科技有限公司 The processing method and processing device of cookie information
WO2017120876A1 (en) * 2016-01-15 2017-07-20 杨瑛 Method for collecting data when restarting webpage, and electronic device
CN108279970A (en) * 2017-12-28 2018-07-13 北京海泰方圆科技股份有限公司 The switching method and apparatus of browser kernel
CN109634753A (en) * 2018-11-02 2019-04-16 北京海泰方圆科技股份有限公司 Switch data processing method, device, terminal and the storage medium of browser kernel
CN110955510A (en) * 2019-12-11 2020-04-03 腾讯科技(深圳)有限公司 Isolation processing method and related device
CN110955510B (en) * 2019-12-11 2021-03-02 腾讯科技(上海)有限公司 Isolation processing method and related device

Also Published As

Publication number Publication date
CN104468834B (en) 2017-12-26

Similar Documents

Publication Publication Date Title
CN104468834A (en) Method and device for processing Cookie data and browser client side
US10255255B2 (en) Customization of mobile applications using web-based technology
US10649826B2 (en) Flexible scripting platform for troubleshooting
US8190703B2 (en) Extensible browser platform for web applications
US9749387B2 (en) Transparently stateful execution of stateless applications
US11201938B2 (en) Systems and methods of token piggybacking
CN104216700B (en) System of cloud-computing-based HTML5 application packaging, installation, unloading and operation method
US11785072B2 (en) Method, apparatus, and system for pushing application program, and device
CN103150513B (en) The method of the implantation information in interception application program and device
US8789198B2 (en) Triggering a private browsing function of a web browser application program
CN104462571A (en) Webpage loading method and device and browser client-side
US8499099B1 (en) Converting data into addresses
CN104348919A (en) Method and device for downloading file and browser
CN104618444A (en) Reverse agent server processing request based method and device
WO2014135045A1 (en) Method and system for implementing transparent agent of ios system
CN105260424A (en) Processing method and apparatus for webpage browsing historical records and most common accesses of user
US20180032384A1 (en) Secure script execution using sandboxed environments
CN105553968A (en) Method and device for realizing login by multiple accounts
CN103581249A (en) Information push method, system and client terminal
CN103248697A (en) Information sharing method, system, browser and server
CN104468769A (en) Method, device and system for acquiring network data content and client side
CN104618445A (en) Method and device for arranging files based on cloud storage space
CN104346460A (en) Method and device for downloading file and browser client
CN110633432A (en) Method, device, terminal equipment and medium for acquiring data
CN104539613A (en) Mail account log-in method and mail client side

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20171226

Termination date: 20211226