CN108279970A - The switching method and apparatus of browser kernel - Google Patents

The switching method and apparatus of browser kernel Download PDF

Info

Publication number
CN108279970A
CN108279970A CN201711466463.7A CN201711466463A CN108279970A CN 108279970 A CN108279970 A CN 108279970A CN 201711466463 A CN201711466463 A CN 201711466463A CN 108279970 A CN108279970 A CN 108279970A
Authority
CN
China
Prior art keywords
information
cookie information
cookie
browser
determined
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
CN201711466463.7A
Other languages
Chinese (zh)
Other versions
CN108279970B (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 Haitai Fangyuan High Technology Co Ltd
Original Assignee
Beijing Haitai Fangyuan High Technology 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 Haitai Fangyuan High Technology Co Ltd filed Critical Beijing Haitai Fangyuan High Technology Co Ltd
Priority to CN201711466463.7A priority Critical patent/CN108279970B/en
Publication of CN108279970A publication Critical patent/CN108279970A/en
Application granted granted Critical
Publication of CN108279970B publication Critical patent/CN108279970B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4812Task transfer initiation or dispatching by interrupt, e.g. masked
    • 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 discloses a kind of switching method and apparatus of browser kernel.Wherein, this method includes:When the first browser is switched to the second browser, corresponding first cookie information of default network address stored in the first browser is obtained, wherein the kernel of the first browser and the second browser is different;Judge whether the first cookie information is no longer valid;If it is determined that the first cookie information is no longer valid, is then generated according to the first cookie information and preset corresponding second cookie information of network address, and set the second cookie information to failure state;Second cookie information is stored to the second browser.The present invention solves browser kernel switching in the prior art and can not will move out state and carry out shared technical problem.

Description

The switching method and apparatus of browser kernel
Technical field
The present invention relates to information security fields, in particular to a kind of switching method and apparatus of browser kernel.
Background technology
In the prior art, when user accesses current site, user in validation information, such as username and password it Afterwards, it can be locally generated cookie information by going sight-seeing device, user is stored in cookie information and accesses testing for current site Information is demonstrate,proved, when accessing same web site again to user, can cookie information be directly sent to server, without user's weight Multiple validation information.
There are many existing browsers, and the kernel of different browsers is different, causes cookie general, on solving Problem is stated, provides cookie synchronous method in the prior art, it is ensured that is switched to another kernel from the browser of a kernel Browser after, login status is constant.
But state is exited when the account of the browser of kernel storage enters, it is deposited in the browser of another kernel The account of storage is still login status, cannot achieve after the browser of a kernel carries out exiting operation, is switched to another It is also to exit operation after the browser of kernel, that is, browser in the prior art cannot achieve in kernel handoff procedure The state of will move out is shared.
State can not be will move out for the switching of browser kernel in the prior art and carries out shared problem, not yet proposed at present Effective solution scheme.
Invention content
An embodiment of the present invention provides a kind of switching method and apparatus of browser kernel, at least to solve in the prior art Browser kernel switching can not will move out state and carry out shared technical problem.
One side according to the ... of the embodiment of the present invention provides a kind of switching method of browser kernel, including:When first When browser is switched to the second browser, corresponding first cookie information of default network address stored in the first browser is obtained, Wherein, the kernel of the first browser and the second browser is different;Judge whether the first cookie information is no longer valid;If it is determined that First cookie information is no longer valid, then is generated according to the first cookie information and preset corresponding second cookie information of network address, And set the second cookie information to failure state;Second cookie information is stored to the second browser.
Further, setting the second cookie information to failure state includes:By the term of validity of the second cookie information Time is set as preset time, wherein preset time is the random time before current time.
Further, judging whether the first cookie information is no longer valid includes:Obtain in the first cookie information whether There are the first markup informations, wherein the first markup information is no longer valid for characterizing the first cookie information;If it is determined that first There are the first markup informations in cookie information, it is determined that the first cookie information is no longer valid;If it is determined that the first cookie The first markup information is not present in information, it is determined that the first cookie information does not fail.
Further, generating default corresponding second cookie information of network address according to the first cookie information includes:Judge It whether there is the second markup information in first cookie information, wherein the second markup information is for characterizing the first cookie information Carry preset attribute;If it is determined that there are the second markup informations in the first cookie information, then use preset function according to the One cookie information generates the second cookie information;If it is determined that the second markup information is not present in the first cookie information, then It is the corresponding format of the second browser by the format conversion of the first cookie information, obtains the second cookie information.
Further, obtaining corresponding first cookie information of default network address stored in the first browser includes:According to The kernel information of first browser and default network address obtain the first cookie letters from the multiple information aggregates stored in process Breath, wherein each information aggregate includes:Website information, kernel information and corresponding cookie information.
Further, according to the first browser kernel information and default network address, the multiple information stored from process Before obtaining the first cookie information in set, the above method further includes:The first information set of the first browser output is received, Wherein, first information set includes:Default network address, the kernel information of the first browser and corresponding third cookie information; Default network address is matched with the website information in each information aggregate stored in process;If it is determined that presetting network address and appointing Website information successful match in one information aggregate of meaning, then gather and carried out more to any one information aggregate according to the first information Newly;If it is determined that default network address is with the website information in any one information aggregate, it fails to match, then deposits first information set In storage to process.
Further, after gathering be updated to any one information aggregate according to the first information, the above method is also Including:Judge whether third cookie information carries out delete operation;In the feelings for determining third cookie information progress delete operation Under condition, third cookie information is compared with the cookie information in the multiple information aggregates stored in process;In determination In the case of cookie information successful match in third cookie information and any one information aggregate, in any one information The first markup information is inserted into cookie information in set.
Further, the cookie information in the multiple information aggregates stored in third cookie information and process is carried out Compare including:The attribute information for judging third cookie information and the attribute of the cookie information in any one information aggregate are believed Whether breath is identical, wherein attribute information includes one of following:Title, domain name or path;If it is determined that third cookie information Attribute information is identical as the attribute information of the cookie information in any one information aggregate, it is determined that third cookie information with Cookie information successful match in any one information aggregate;If it is determined that the attribute information of third cookie information with it is each The attribute information of cookie information in information aggregate is different, it is determined that in third cookie information and each information aggregate It fails to match for cookie information.
Further, the cookie information successful match in determining third cookie information and any one information aggregate In the case of, the above method includes:Judge whether third cookie information carries preset attribute;If it is determined that the 3rd cookie Information carries preset attribute, then is inserted into the second markup information in the cookie information in any one information aggregate.
Another aspect according to the ... of the embodiment of the present invention additionally provides a kind of switching device of browser kernel, including:It obtains Module, for when the first browser is switched to the second browser, it is corresponding to obtain the default network address stored in the first browser First cookie information, wherein the kernel of the first browser and the second browser is different;Judgment module, for judging first Whether cookie information is no longer valid;Generation module, for if it is determined that the first cookie information is no longer valid, then according to first Cookie information, which generates, presets corresponding second cookie information of network address, and sets the second cookie information to failure state; Memory module, for storing the second cookie information to the second browser.
Another aspect according to the ... of the embodiment of the present invention, additionally provides a kind of storage medium, and storage medium includes the journey of storage Sequence, wherein equipment where controlling storage medium when program is run executes the switching method of above-mentioned browser kernel.
Another aspect according to the ... of the embodiment of the present invention additionally provides a kind of processor, and processor is used to run program, In, program executes the switching method of above-mentioned browser kernel when running.
In embodiments of the present invention, it when the first browser is switched to the second browser, obtains and is stored in the first browser Corresponding first cookie information of default network address, judge whether the first cookie information no longer valid, if it is determined that first Cookie information is no longer valid, then is generated according to the first cookie information and preset corresponding second cookie information of network address, and will Second cookie information is set as failure state, and the second cookie information is stored to the second browser.It is easily noted that, While the second cookie information corresponding according to the default network address of the first cookie information generation, if it is determined that the first cookie Information is no longer valid, then can set the second cookie information to failure state, it is ensured that the first cookie information and second Cookie information hold mode synchronizes, and exits what state synchronized when browser kernel switching to reach, and then solve Browser kernel switching can not will move out state and carry out shared technical problem in the prior art.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and is constituted part of this application, this hair Bright illustrative embodiments and their description are not constituted improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is a kind of flow chart of the switching method of browser kernel according to the ... of the embodiment of the present invention;And
Fig. 2 is a kind of schematic diagram of the switching device of browser kernel according to the ... of the embodiment of the present invention.
Specific implementation mode
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The every other embodiment that member is obtained without making creative work should all belong to the model that the present invention protects It encloses.
It should be noted that term " first " in description and claims of this specification and above-mentioned attached drawing, " Two " etc. be for distinguishing similar object, without being used to describe specific sequence or precedence.It should be appreciated that using in this way Data can be interchanged in the appropriate case, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover It includes to be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment to cover non-exclusive Those of clearly list step or unit, but may include not listing clearly or for these processes, method, product Or the other steps or unit that equipment is intrinsic.
Embodiment 1
According to embodiments of the present invention, a kind of embodiment of the switching method of browser kernel is provided, it should be noted that Step shown in the flowchart of the accompanying drawings can execute in the computer system of such as a group of computer-executable instructions, and It, in some cases, can be to execute institute different from sequence herein and although logical order is shown in flow charts The step of showing or describing.
Fig. 1 is a kind of flow chart of the switching method of browser kernel according to the ... of the embodiment of the present invention, as shown in Figure 1, should Method includes the following steps:
Step S102 obtains the default net stored in the first browser when the first browser is switched to the second browser Corresponding first cookie information in location, wherein the kernel of the first browser and the second browser is different.
Specifically, the first above-mentioned browser and the second browser can be the different browsers of kernel, for example, first is clear Device of looking at can be IE kernel browsers, and the second browser can be the browser of webkit kernels;First browser can be The browser of webkit kernels, the second browser can be the browsers of IE kernels;Above-mentioned default network address can be user's visit Ask the network address of current site, or the website for state of logging off network address.
Step S104 judges whether the first cookie information is no longer valid.
Specifically, it when user website corresponding using the default network address of the first browser access, can be deposited in the first browser The default corresponding cookie information of network address namely the first above-mentioned cookie information are stored up, when user exits in current site When login, the first browser can carry out delete operation to the first cookie information, and the first cookie information is caused to fail.
Step S106, if it is determined that the first cookie information is no longer valid, then is generated according to the first cookie information default Corresponding second cookie information of network address, and set the second cookie information to failure state.
Step S108 stores the second cookie information to the second browser.
In a kind of optional scheme, when user is switched to the second browser from the first browser, first can be obtained Browser access presets the first cookie information that network address is stored, and builds the second browser according to the first cookie information Second cookie information, and judge whether the first cookie information is no longer valid, if it is determined that the first cookie information has been lost Effect can then set the second cookie information to failure state that is, determining that user logs off in the first browser, It is deleted by the second browser to which the second cookie information is equivalent to after storing to the second browser, the second browser is being visited It when asking default network address, since the second cookie information is failure state, can not be logged in, user is needed to re-enter verification letter Breath to realize after the first browser carries out exiting operation, is switched to that is, the second browser is also to log off Two browsers are also to exit operation.
It should be noted that if it is determined that the first cookie information does not fail, then it can be according to the prior art according to first Cookie information generates the second cookie information, and stores into the second browser, to realize that login status synchronizes.
According to the above embodiment of the present invention, when the first browser is switched to the second browser, obtain in the first browser Corresponding first cookie information of default network address of storage, judges whether the first cookie information is no longer valid, if it is determined that the One cookie information is no longer valid, then is generated according to the first cookie information and preset corresponding second cookie information of network address, and It sets the second cookie information to failure state, the second cookie information is stored to the second browser.It is easily noted that It is, while the second cookie information corresponding according to the default network address of the first cookie information generation, if it is determined that first Cookie information is no longer valid, then can set the second cookie information to failure state, it is ensured that the first cookie information with Second cookie information hold mode synchronizes, and exits what state synchronized when browser kernel switching to reach, and then solve Browser kernel switching in the prior art of having determined can not will move out state and carry out shared technical problem.
Optionally, in the above embodiment of the present invention, step S106 sets the second cookie information to failure state packet It includes:
Step S1062 sets the term of validity time of the second cookie information to preset time, wherein preset time is Random time before current time.
Specifically, above-mentioned preset time can be the expired time, for example, it may be current time is previous Second, by the way that time-out time is arranged, to which the second browser can determine that the second cookie information is no longer valid.
Optionally, in the above embodiment of the present invention, step S104 judges the whether no longer valid packet of the first cookie information It includes:
Step S1042 is obtained and be whether there is the first markup information in the first cookie information, wherein the first markup information It is no longer valid for characterizing the first cookie information.
Specifically, the first above-mentioned markup information can be delete marks.
Step S1044, if it is determined that there are the first markup informations in the first cookie information, it is determined that the first cookie believes It ceases no longer valid.
Step S1046, if it is determined that the first markup information is not present in the first cookie information, it is determined that the first cookie Information does not fail.
It, can be in the first mark when the first browser needs to delete the first cookie information in a kind of optional scheme It notes and increases delete marks in information, it, can be with to be marked by judging whether to carry delete in the first cookie information Determine whether the first cookie information is no longer valid.
Optionally, in the above embodiment of the present invention, step S106 is generated according to the first cookie information and is preset network address pair The second cookie information answered includes:
Step S1064 judges to whether there is the second markup information in the first cookie information, wherein the second markup information Preset attribute is carried for characterizing the first cookie information.
Specifically, above-mentioned preset attribute can be HTTPONLY attributes or SECURE attributes;The second above-mentioned mark Information can be attribute mark corresponding with preset attribute.
Step S1066, if it is determined that there are the second markup informations in the first cookie information, then use preset function according to First cookie information generates the second cookie information.
Specifically, above-mentioned preset function can be the letter for the cookie for being labeled with specific properties to be written Number.
Step S1068, if it is determined that the second markup information is not present in the first cookie information, then believes the first cookie The format conversion of breath is the corresponding format of the second browser, obtains the second cookie information.
In a kind of optional scheme, during building the second cookie information, it can be determined that the first cookie believes Whether HTTPONLY attribute or SECURE attribute corresponding attribute mark are carried in breath, if taken in the first cookie information With HTTPONLY attributes or the corresponding attribute mark of SECURE attributes, then can be written using specific function;Such as Corresponding attribute mark is not carried in the first cookie information of fruit, that is, the first cookie information is common cookie, then it can be with It is write according to the corresponding format of the second browser, to obtain the second cookie information.
Optionally, in the above embodiment of the present invention, step S102 obtains the default network address pair stored in the first browser The first cookie information answered includes:
Step S1022, according to the kernel information of the first browser and default network address, multiple information collection for being stored from process The first cookie information is obtained in conjunction, wherein each information aggregate includes:Website information, kernel information and corresponding Cookie information.
Specifically, above-mentioned process can be service processes, and the browsing of different kernels can be monitored by starting the process The incoming information aggregate of device, including website information, kernel information and cookie information, and the cookie letters stored in servicing It is that a network address corresponds to a cookie information to cease format.
In a kind of optional scheme, when the first browser is switched to the second browser, it can obtain and be stored in service The first cookie information, and the second cookie information is built according to the first cookie information for getting, while judging first Whether cookie information is no longer valid.
Optionally, in the above embodiment of the present invention, in step S1022, according to the kernel information of the first browser and in advance If network address, before obtaining the first cookie information in the information aggregate stored in process, this method further includes:
Step S112 receives the first information set of the first browser output, wherein first information set includes:It is default Network address, the kernel information of the first browser and corresponding third cookie information.
Step S114 matches default network address with the website information in each information aggregate stored in process.
Step S116, if it is determined that preset network address and the website information successful match in any one information aggregate, then root Any one information aggregate is updated according to first information set.
Step S118, if it is determined that it fails to match with the website information in any one information aggregate for default network address, then will First information set is stored into process.
In a kind of optional scheme, service processes can be started and monitor the information that the browser of different kernels is passed into Set, and default network address is matched with all website informations stored in service processes, namely whether judge website information Exist in service processes, if it is present being updated operation, namely behaviour is updated according to third cookie information Make;If it does not exist, then carrying out insertion operation, third cookie information and website information are also subjected to corresponding storage.
Optionally, in the above embodiment of the present invention, step S116 gathers according to the first information to any one information collection Conjunction be updated including:
Step S1160, judges whether third cookie information carries out delete operation.
Step S1162, determine third cookie information carry out delete operation in the case of, by third cookie information with Cookie information in the multiple information aggregates stored in process is compared.
Step S1164 is determining that third cookie information matches into the cookie information in any one information aggregate In the case of work(, the first markup information is inserted into the cookie information in any one information aggregate.
In a kind of optional scheme, during being updated operation, it can be determined that whether third cookie information Delete operation is carried out, namely judges whether there are delete marks in third cookie information, if there is, it is determined that the 3rd cookie Information carries out delete operation, can will increase delete marks in the cookie information stored in service processes.
Optionally, in the above embodiment of the present invention, step S1162, by what is stored in third cookie information and process Cookie information in multiple information aggregates be compared including:
Step S11622 judges that the attribute information of third cookie information is believed with the cookie in any one information aggregate Whether the attribute information of breath is identical, wherein attribute information includes one of following:Title, domain name or path.
Step S11624, if it is determined that in the attribute information of third cookie information and any one information aggregate The attribute information of cookie information is identical, it is determined that third cookie information and the cookie information in any one information aggregate Successful match.
Step S11626, if it is determined that the attribute information of third cookie information is believed with the cookie in each information aggregate The attribute information of breath is different, it is determined that it fails to match with the cookie information in each information aggregate for third cookie information.
It, can be in the case where determining that third cookie information needs to carry out delete operation in a kind of optional scheme Judged according to the name of cookie information, domain name domain, path path, judges to whether there is third in service processes Cookie information, if it is present delete marks will be increased in the cookie information stored in service processes.
Optionally, in the above embodiment of the present invention, in determining third cookie information and any one information aggregate Cookie information successful match in the case of, this method includes:
Step S1166, judges whether third cookie information carries preset attribute.
Step S1168, if it is determined that third cookie information carries preset attribute, then in any one information aggregate Cookie information in be inserted into the second markup information.
In a kind of optional scheme, during being updated operation, it can also judge that third cookie information is It is no to carry HTTPONLY SECURE attributes, if it is, can will increase in the cookie information stored in service processes Add corresponding attribute labeling;If it is not, then the information in service processes can directly be updated, so that it is guaranteed that being stored in service processes Cookie information be newest and be complete.
Through the above scheme, in the case where the first browser is switched to the second browser, behaviour is synchronized to cookie Make, to reduce the time of cookie conversions, and by setting cookie information to failure state, realizes in browser switching State is exited when core to be shared.
Embodiment 2
According to embodiments of the present invention, a kind of embodiment of the switching device of browser kernel is provided.
Fig. 2 is a kind of schematic diagram of the switching device of browser kernel according to the ... of the embodiment of the present invention, as shown in Fig. 2, should Device includes:
Acquisition module 22, for when the first browser is switched to the second browser, being stored in the first browser of acquisition Corresponding first cookie information of default network address, wherein the kernel of the first browser and the second browser is different.
Specifically, the first above-mentioned browser and the second browser can be the different browsers of kernel, for example, first is clear Device of looking at can be IE kernel browsers, and the second browser can be the browser of webkit kernels;First browser can be The browser of webkit kernels, the second browser can be the browsers of IE kernels;Above-mentioned default network address can be user's visit Ask the network address of current site, or the website for state of logging off network address.
Judgment module 24, for judging whether the first cookie information is no longer valid.
Specifically, it when user website corresponding using the default network address of the first browser access, can be deposited in the first browser The default corresponding cookie information of network address namely the first above-mentioned cookie information are stored up, when user exits in current site When login, the first browser can carry out delete operation to the first cookie information, and the first cookie information is caused to fail.
Generation module 26 is used for if it is determined that the first cookie information is no longer valid, then according to the life of the first cookie information At corresponding second cookie information of default network address, and set the second cookie information to failure state.
Memory module 28, for storing the second cookie information to the second browser.
In a kind of optional scheme, when user is switched to the second browser from the first browser, first can be obtained Browser access presets the first cookie information that network address is stored, and builds the second browser according to the first cookie information Second cookie information, and judge whether the first cookie information is no longer valid, if it is determined that the first cookie information has been lost Effect can then set the second cookie information to failure state that is, determining that user logs off in the first browser, It is deleted by the second browser to which the second cookie information is equivalent to after storing to the second browser, the second browser is being visited It when asking default network address, since the second cookie information is failure state, can not be logged in, user is needed to re-enter verification letter Breath to realize after the first browser carries out exiting operation, is switched to that is, the second browser is also to log off Two browsers are also to exit operation.
It should be noted that if it is determined that the first cookie information does not fail, then it can be according to the prior art according to first Cookie information generates the second cookie information, and stores into the second browser, to realize that login status synchronizes.
According to the above embodiment of the present invention, when the first browser is switched to the second browser, obtain in the first browser Corresponding first cookie information of default network address of storage, judges whether the first cookie information is no longer valid, if it is determined that the One cookie information is no longer valid, then is generated according to the first cookie information and preset corresponding second cookie information of network address, and It sets the second cookie information to failure state, the second cookie information is stored to the second browser.It is easily noted that It is, while the second cookie information corresponding according to the default network address of the first cookie information generation, if it is determined that first Cookie information is no longer valid, then can set the second cookie information to failure state, it is ensured that the first cookie information with Second cookie information hold mode synchronizes, and exits what state synchronized when browser kernel switching to reach, and then solve Browser kernel switching in the prior art of having determined can not will move out state and carry out shared technical problem.
Embodiment 3
According to embodiments of the present invention, a kind of embodiment of storage medium is provided, storage medium includes the program of storage, In, equipment where controlling storage medium when program is run executes the switching method of the browser kernel in above-described embodiment 1.
Embodiment 4
According to embodiments of the present invention, a kind of embodiment of processor is provided, processor is for running program, wherein journey The switching method of the browser kernel in above-described embodiment 1 is executed when sort run.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
In the above embodiment of the present invention, all emphasizes particularly on different fields to the description of each embodiment, do not have in some embodiment The part of detailed description may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, for example, the unit division, Ke Yiwei A kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module It connects, can be electrical or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple On unit.Some or all of unit therein can be selected according to the actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can be stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or Part steps.And storage medium above-mentioned includes:USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can to store program code Medium.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (12)

1. a kind of switching method of browser kernel, which is characterized in that including:
When the first browser is switched to the second browser, the default network address stored in first browser corresponding the is obtained One cookie information, wherein first browser is different with the kernel of second browser;
Judge whether first cookie information is no longer valid;
If it is determined that first cookie information is no longer valid, then the default net is generated according to first cookie information Corresponding second cookie information in location, and set second cookie information to failure state;
Second cookie information is stored to second browser.
2. according to the method described in claim 1, it is characterized in that, setting second cookie information to failure state packet It includes:
Set the term of validity time of second cookie information to preset time, wherein when the preset time is current Between before random time.
3. according to the method described in claim 1, it is characterized in that, judging the whether no longer valid packet of first cookie information It includes:
It obtains and whether there is the first markup information in first cookie information, wherein first markup information is used for table It is no longer valid to levy first cookie information;
If it is determined that there are first markup informations in first cookie information, it is determined that first cookie information It is no longer valid;
If it is determined that first markup information is not present in first cookie information, it is determined that the first cookie letters Breath does not fail.
4. according to the method described in claim 1, it is characterized in that, generating the default net according to first cookie information Corresponding second cookie information in location includes:
Judge to whether there is the second markup information in first cookie information, wherein second markup information is used for table It levies first cookie information and carries preset attribute;
If it is determined that there are second markup informations in first cookie information, then use preset function according to described the One cookie information generates second cookie information;
If it is determined that second markup information is not present in first cookie information, then by first cookie information Format conversion be the corresponding format of second browser, obtain second cookie information.
5. method as claimed in any of claims 1 to 4, which is characterized in that obtain and deposited in first browser Storage corresponding first cookie information of default network address include:
According to the kernel information of first browser and the default network address, obtained from the multiple information aggregates stored in process Take first cookie information, wherein each information aggregate includes:Website information, kernel information and corresponding cookie Information.
6. according to the method described in claim 5, it is characterized in that, according to the kernel information of first browser and described Default network address, before obtaining first cookie information in the multiple information aggregates stored in process, the method is also wrapped It includes:
Receive the first information set of first browser output, wherein the first information set includes:The default net Location, the kernel information of first browser and corresponding third cookie information;
The default network address is matched with the website information in each information aggregate stored in the process;
If it is determined that the default network address and the website information successful match in any one information aggregate, then according to described first Information aggregate is updated any one described information aggregate;
If it is determined that the default network address is with the website information in any one information aggregate, it fails to match, then believes described first Breath set is stored into the process.
7. according to the method described in claim 6, it is characterized in that, according to the first information set to any one described letter Breath set be updated including:
Judge whether the third cookie information carries out delete operation;
In the case where determining that the third cookie information carries out delete operation, by the third cookie information with it is described into Cookie information in the multiple information aggregates stored in journey is compared;
In the case of the cookie information successful match in determining the third cookie information and any one information aggregate, It is inserted into the first markup information in cookie information in any one described information aggregate.
8. the method according to the description of claim 7 is characterized in that the third cookie information is stored with the process Multiple information aggregates in cookie information be compared including:
Judge the category of the attribute information and the cookie information in any one described information aggregate of the third cookie information Property information it is whether identical, wherein the attribute information includes one of following:Title, domain name or path;
If it is determined that the attribute information of the third cookie information and the cookie information in any one described information aggregate Attribute information it is identical, it is determined that the cookie information in the third cookie information and any one described information aggregate With success;
If it is determined that the category of the attribute information of the third cookie information and the cookie information in each information aggregate Property information it is different, it is determined that it fails to match with the cookie information in each information aggregate for the third cookie information.
9. the method according to the description of claim 7 is characterized in that determining the third cookie information and any one letter In the case of cookie information successful match in breath set, the method includes:
Judge whether the third cookie information carries preset attribute;
If it is determined that the third cookie information carries the preset attribute, then in any one described information aggregate The second markup information is inserted into cookie information.
10. a kind of switching device of browser kernel, which is characterized in that including:
Acquisition module, for when the first browser is switched to the second browser, being stored in acquisition first browser pre- If corresponding first cookie information of network address, wherein first browser is different with the kernel of second browser;
Judgment module, for judging whether first cookie information is no longer valid;
Generation module, for if it is determined that first cookie information is no longer valid, then according to first cookie information Corresponding second cookie information of the default network address is generated, and sets second cookie information to failure state;
Memory module, for storing second cookie information to second browser.
11. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein run in described program When control the storage medium where equipment perform claim require the switching side of the browser kernel described in any one of 1 to 9 Method.
12. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run Profit requires the switching method of the browser kernel described in any one of 1 to 9.
CN201711466463.7A 2017-12-28 2017-12-28 The switching method and apparatus of browser kernel Active CN108279970B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711466463.7A CN108279970B (en) 2017-12-28 2017-12-28 The switching method and apparatus of browser kernel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711466463.7A CN108279970B (en) 2017-12-28 2017-12-28 The switching method and apparatus of browser kernel

Publications (2)

Publication Number Publication Date
CN108279970A true CN108279970A (en) 2018-07-13
CN108279970B CN108279970B (en) 2019-07-02

Family

ID=62802510

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711466463.7A Active CN108279970B (en) 2017-12-28 2017-12-28 The switching method and apparatus of browser kernel

Country Status (1)

Country Link
CN (1) CN108279970B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108763601A (en) * 2018-09-21 2018-11-06 上海二三四五网络科技有限公司 A kind of control method automatically switched in dual core browser and control device
CN109376536A (en) * 2018-08-21 2019-02-22 中国平安人寿保险股份有限公司 Obtain method, apparatus, computer equipment and the storage medium of Cookie
CN112668048A (en) * 2020-12-28 2021-04-16 上海掌门科技有限公司 Method and equipment for displaying webpage in browser

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070157304A1 (en) * 2006-01-05 2007-07-05 International Business Machines Corporation Method, apparatus and computer program product for automatic cookie synchronization between distinct web browsers
CN102467506A (en) * 2010-11-02 2012-05-23 腾讯科技(深圳)有限公司 Cookie processing method and system
CN102467565A (en) * 2010-11-19 2012-05-23 奇智软件(北京)有限公司 Browser kernel switching method
CN102624891A (en) * 2012-03-08 2012-08-01 腾讯科技(深圳)有限公司 Method for switching kernel of browser and corresponding browser
CN103955477A (en) * 2014-03-31 2014-07-30 北京奇虎科技有限公司 Method for writing and reading Cookie information in browser, device and browser
CN104462571A (en) * 2014-12-26 2015-03-25 北京奇虎科技有限公司 Webpage loading method and device and browser client-side
CN104468834A (en) * 2014-12-26 2015-03-25 北京奇虎科技有限公司 Method and device for processing Cookie data and browser client side
CN105162805A (en) * 2015-09-30 2015-12-16 北京奇虎科技有限公司 User account login method and apparatus
CN107016074A (en) * 2017-03-24 2017-08-04 腾讯科技(深圳)有限公司 A kind of webpage loading method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070157304A1 (en) * 2006-01-05 2007-07-05 International Business Machines Corporation Method, apparatus and computer program product for automatic cookie synchronization between distinct web browsers
CN102467506A (en) * 2010-11-02 2012-05-23 腾讯科技(深圳)有限公司 Cookie processing method and system
CN102467565A (en) * 2010-11-19 2012-05-23 奇智软件(北京)有限公司 Browser kernel switching method
CN102624891A (en) * 2012-03-08 2012-08-01 腾讯科技(深圳)有限公司 Method for switching kernel of browser and corresponding browser
CN103955477A (en) * 2014-03-31 2014-07-30 北京奇虎科技有限公司 Method for writing and reading Cookie information in browser, device and browser
CN104462571A (en) * 2014-12-26 2015-03-25 北京奇虎科技有限公司 Webpage loading method and device and browser client-side
CN104468834A (en) * 2014-12-26 2015-03-25 北京奇虎科技有限公司 Method and device for processing Cookie data and browser client side
CN105162805A (en) * 2015-09-30 2015-12-16 北京奇虎科技有限公司 User account login method and apparatus
CN107016074A (en) * 2017-03-24 2017-08-04 腾讯科技(深圳)有限公司 A kind of webpage loading method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109376536A (en) * 2018-08-21 2019-02-22 中国平安人寿保险股份有限公司 Obtain method, apparatus, computer equipment and the storage medium of Cookie
CN109376536B (en) * 2018-08-21 2023-11-14 中国平安人寿保险股份有限公司 Cookie acquisition method, cookie acquisition device, computer equipment and storage medium
CN108763601A (en) * 2018-09-21 2018-11-06 上海二三四五网络科技有限公司 A kind of control method automatically switched in dual core browser and control device
CN108763601B (en) * 2018-09-21 2020-07-07 上海二三四五网络科技有限公司 Control method and control device for automatic switching in dual-kernel browser
CN112668048A (en) * 2020-12-28 2021-04-16 上海掌门科技有限公司 Method and equipment for displaying webpage in browser

Also Published As

Publication number Publication date
CN108279970B (en) 2019-07-02

Similar Documents

Publication Publication Date Title
CN103701805B (en) Detect the method and device of weak passwurd in network
CN105808070B (en) A kind of method and apparatus of setting comment bandwagon effect
US7440415B2 (en) Virtual network addresses
CN106126402B (en) The processing method and processing device of accelerator exception
CN104468592B (en) Login method and login system
CN108279970B (en) The switching method and apparatus of browser kernel
CN104158818B (en) A kind of single-point logging method and system
CN106339613A (en) Application data processing method, terminal and server
CN106453216A (en) Malicious website interception method, malicious website interception device and client
CN106708489A (en) Debugging method and system of equipment
CN102365878B (en) Adaptive ambient services
CN105871947B (en) The method and device of cross-domain request data
CN108173938A (en) Server load shunt method and device
CN107465666A (en) A kind of client ip acquisition methods and device
CN108390955A (en) Domain Name acquisition method, Website access method and server
CN107623698A (en) Remote debugging network equipment method and device
CN108809895A (en) The detection method and device of weak passwurd
US20120158830A1 (en) Apparatus and method for generating virtual game clients
CN108205621A (en) Authority distributing method and device
CN104580380B (en) The synchronous method and system of logging state
CN108616389A (en) Network estimation method, equipment, storage medium based on Cloud Server and device
CN106790085A (en) Vulnerability scanning method, apparatus and system
CN106790465A (en) cross-domain access method and device
CN107196936A (en) Interface retransmission method, system, computer equipment and storage medium
CN107181822A (en) The control method of communication system and its communication means and device, terminal and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant