CN106790635A - Cookie information management method and server - Google Patents
Cookie information management method and server Download PDFInfo
- Publication number
- CN106790635A CN106790635A CN201710010587.8A CN201710010587A CN106790635A CN 106790635 A CN106790635 A CN 106790635A CN 201710010587 A CN201710010587 A CN 201710010587A CN 106790635 A CN106790635 A CN 106790635A
- Authority
- CN
- China
- Prior art keywords
- information
- cookie information
- cookie
- terminal device
- server
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/146—Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
- H04L67/5682—Policies or rules for updating, deleting or replacing the stored data
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the present invention provides a kind of cookie information management method and server, and the method includes:After the page request message for receiving terminal device transmission, the first cookie information and the corresponding first version information of the first cookie information are obtained in page request message;When it is determined that the first cookie information includes the cookie information of the first kind, judge whether first version information is latest version information, the first kind is the type of the cookie information that server is safeguarded;If judged result is no, then cookie information more new command is sent to terminal device, cookie information more new command includes latest version information and the corresponding newest cookie information of latest version information, so that terminal device updates first version information and the first cookie information according to cookie information more new command.Accuracy for improving terminal device loading page.
Description
Technical field
The present embodiments relate to field of computer technology, more particularly to a kind of cookie information management method and service
Device.
Background technology
At present, during terminal device passes through browser access website, cookie letters can be produced in terminal device
Breath, and cookie information is managed by terminal device.
In actual application, content can be the user profile of terminal device generation in cookie information, for example, use
Name in an account book, password etc., the content in cookie information can also be the page info of server generation.In terminal device to server
During requests for page information, terminal device is carried in page request message treats the corresponding cookie information of requests for page, so that clothes
Cookie information generation page info of the business device in page request message.However, in actual application, in website liter
After level, server may change to the partial page information that terminal device is provided so that be stored in terminal device
Page info in cookie information is not inconsistent with the actual pages information of website, so, in server according to page request message
In cookie information generation page info when, it is impossible to generate correct page info so that terminal device loading the page go out
Existing mistake, causes the accuracy of terminal device loading page relatively low.
The content of the invention
The embodiment of the present invention provides a kind of cookie information management method and server.Improve terminal device loading page
Accuracy.
In a first aspect, the embodiment of the present invention provides a kind of cookie information management method, server, methods described are applied to
Including:
After the page request message for receiving terminal device transmission, first is obtained in the page request message
Cookie information and the corresponding first version information of first cookie information;
When it is determined that first cookie information includes the cookie information of the first kind, first version information is judged
Whether it is latest version information, the first kind is the type of the cookie information that the server is safeguarded;
If judged result is no, cookie information more new command, the cookie information are sent to the terminal device
More new command includes the latest version information and the corresponding newest cookie information of the latest version information, so that described
Terminal device updates the first version information and first cookie information according to the cookie information more new command.
In a kind of possible implementation method, it is determined that not including the first kind in first cookie information
During cookie information, methods described also includes:
Obtain corresponding first domain name of first cookie information;
Judge whether first domain name corresponds to the second cookie information for having the first kind;
If so, second cookie information and the corresponding second edition information of first domain name are then obtained, and to institute
State terminal device and send second cookie information and the second edition information, so that the terminal device is according to described the
Two cookie informations update first cookie information and the correspondence storage second edition information.
In alternatively possible implementation method, judge whether first version information is latest version information, including:
Obtain corresponding first domain name of first cookie information;
Corresponding this information of the third edition of first domain name, the third edition are obtained in the configuration information of the server
This information is the corresponding latest version information of first domain name;
According to the first version information and described this information of the third edition, judge whether the first version information is newest
Version information.
In alternatively possible implementation method, if judging, first version information is latest version information, and methods described is also
Including:
According to first cookie information, the corresponding page info of the page request message is obtained;
The page info is sent to the terminal device, so that the terminal device carries out page according to the page info
Face shows.
In alternatively possible implementation method, after cookie information more new command is sent to the terminal device,
Also include:
According to the newest cookie information, the corresponding page info of the page request message is obtained;
The page info is sent to the terminal device, so that the terminal device carries out page according to the page info
Face shows.
Second aspect, the embodiment of the present invention provides a kind of server, including the first acquisition module, the first judge module and hair
Module is sent, wherein,
First acquisition module is used for, after the page request message for receiving terminal device transmission, in the page
The first cookie information and the corresponding first version information of first cookie information are obtained in solicited message;
First judge module is used for, it is determined that first cookie information includes the cookie letters of the first kind
During breath, judge whether first version information is latest version information, the first kind is the cookie that the server is safeguarded
The type of information;
The sending module is used for, when it is not latest version information that the judge module judges first version information, to
The terminal device sends cookie information more new command, and the cookie information more new command includes the latest edition letter
Corresponding with the latest version information newest cookie information of breath so that the terminal device according to the cookie information more
New command updates the first version information and first cookie information.
In a kind of possible implementation method, the server also includes the second acquisition module, the second judge module and the
Three acquisition modules, wherein,
Second acquisition module is used for, it is determined that not including the cookie of the first kind in first cookie information
During information, corresponding first domain name of first cookie information is obtained;
Second judge module is used for, and judging whether first domain name is corresponding has the second of the first kind
Cookie information;
3rd acquisition module is used for, and judges that the first domain name correspondence has described first in second judge module
During the second cookie information of type, second cookie information and the corresponding second edition letter of first domain name are obtained
Breath;
The sending module is additionally operable to, and second cookie information and the second edition are sent to the terminal device
Information, so that the terminal device updates first cookie information and correspondence storage according to second cookie information
The second edition information.
In alternatively possible implementation method, first judge module specifically for:
Obtain corresponding first domain name of first cookie information;
Corresponding this information of the third edition of first domain name, the third edition are obtained in the configuration information of the server
This information is the corresponding latest version information of first domain name;
According to the first version information and described this information of the third edition, judge whether the first version information is newest
Version information.
In alternatively possible implementation method, the server also includes the 4th acquisition module, wherein,
4th acquisition module is used for, and judges that first version information is latest version information in first judge module
When, according to first cookie information, obtain the corresponding page info of the page request message;
The sending module is additionally operable to, and the page info is sent to the terminal device, so that the terminal device root
The page is carried out according to the page info to show.
In alternatively possible implementation method, the server also includes the 5th acquisition module, wherein,
5th acquisition module is used for, and sending cookie information renewal to the terminal device in the sending module refers to
After order, according to the newest cookie information, the corresponding page info of the page request message is obtained;
The sending module is additionally operable to, and the page info is sent to the terminal device, so that the terminal device root
The page is carried out according to the page info to show.
Cookie information management method provided in an embodiment of the present invention and server, page is sent in terminal device to server
During the solicited message of face, the first cookie information corresponding with the domain name for treating requests for page and first are carried in page request message
The corresponding first version information of cookie information.Accordingly, the page request message of terminal device transmission is received in server
Afterwards, server can obtain the first cookie information and first version information in page request message, and according to locally depositing
The latest version information of storage, judges whether the first cookie information stored in terminal device is newest cookie information, if it is not,
The first cookie information and first version information that then control terminal equipment is stored to terminal device are updated, so that terminal sets
Cookie information and version information in standby are newest, and then avoid server according to the page of cookie information generation error
Information, and then the page of terminal device loading error is avoided, improve the accuracy of terminal device loading page.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are this hairs
Some bright embodiments, for those of ordinary skill in the art, without having to pay creative labor, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the application scenarios schematic diagram of cookie information management method provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet one of cookie information management method provided in an embodiment of the present invention;
Fig. 3 is the schematic flow sheet two of cookie information management method provided in an embodiment of the present invention;
Fig. 4 is the structural representation one of server provided in an embodiment of the present invention;
Fig. 5 is the structural representation two of server provided in an embodiment of the present invention.
Specific embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Fig. 1 is the application scenarios schematic diagram of cookie information management method provided in an embodiment of the present invention.Refer to Fig. 1,
Including terminal device 101 and server 102.Terminal device 101 can be the equipment, terminal device 101 such as mobile phone, computer, TV
Webpage (the hereinafter referred page) can be obtained to request server 102 by application programs such as browsers.Terminal device 101
In be stored with a plurality of cookie information, the corresponding cookie information of each domain name can be stored in one file, each
Domain name one version information of corresponding cookie information correspondence.Multiple domain names that are stored with server 102 are corresponding with each domain name
Latest version information, after server is updated to the corresponding page of domain name, then the server to the domain name to one
Latest version information be updated.
In this application, when terminal device 101 is to the 102 acquisition request page of server, terminal device is in page request
Middle to carry corresponding cookie information and version information, server is according to cookie information, the version letter carried in page request
The latest version information for ceasing and being locally stored, judges whether to need to carry out the cookie information and version information in terminal device
Update, when needed, server 102 sends corresponding more new command to terminal device, so that 101 pairs of storages of terminal device
Cookie information is updated.In this manner it is ensured that the cookie information in terminal device is newest cookie information, Jin Erke
To avoid terminal device according to the page info of cookie information loading error, and then improve the accuracy of page loading.
Below, by specific embodiment, the technical scheme shown in the application is described in detail.It should be noted that
Several specific embodiments can be combined with each other below, no longer be gone to live in the household of one's in-laws on getting married in various embodiments for same or analogous concept
State.
Fig. 2 is the schematic flow sheet one of cookie information management method provided in an embodiment of the present invention.The execution of the method
Main body can be server, refer to Fig. 2, and the method can include:
S201, receive terminal device transmission page request message after, first is obtained in page request message
Cookie information and the corresponding first version information of the first cookie information.
For the ease of the understanding to the application, below, the method first to terminal device storage cookie information is carried out in detail
Describe in detail bright.In terminal device, generally the cookie information with same domain name is stored in identical file, the domain name can be with
It is top-level domain, second level domain, three-level domain name etc..For example, can be by second level domain for all cookie informations of a.b.com are deposited
It is placed in file 1, by second level domain for all cookie informations of a.c.com are stored in file 2.
All cookie informations correspondence identical version information in identical file, the cookie information pair in different files
The version information answered can be with identical, also cannot be different.The corresponding version information of cookie information is terminal device to server
When obtaining the cookie information, the version information of the corresponding page of corresponding domain name in server.For example, cookie information is in terminal
Storage format in equipment can be as shown in table 1:
Table 1
In the cookie information shown in table 1, it is assumed that domain name 1 is second level domain, then cookie information 1-cookie information
10 second level domain is identical.Optionally, in cookie information 1-cookie information 10, possible part cookie information is terminal
Equipment generation the cookie information related to user profile, part cookie information be server generate with page info phase
The cookie information of pass.The cookie related to page info in terminal device obtains cookie information 1-cookie information 10
During information, the version information of the corresponding page of domain name 1 is 2 in server.It should be noted that being carried out more to website in server
When new, the partial page of website may be updated, therefore, the version information of the corresponding page of difference domain name in server
May be different.
In actual application, when terminal device needs to obtain the page to server request, terminal device is to service
Device sends page request message.Terminal device obtains the first domain name corresponding always according to corresponding first domain name of requests for page is treated
First cookie information and the corresponding first version information of the first cookie information, and first is carried in page request message
Cookie information and first version information.Wherein, a plurality of cookie information can be included in the first cookie information.For example, false
If terminal device is stored respectively according to second level domain to cookie information, when premises equipment requests first page, terminal
Equipment obtain first page second level domain, and obtained in terminal device corresponding first cookie information of the second level domain and
First version information.
In the page request message that server acquires terminal device transmission, page request message can be solved
Analysis, to obtain the first cookie information and first version information in page request message.
S202, when it is determined that the first cookie information includes the cookie information of the first kind, judge first version believe
Whether breath is latest version information, and the first kind is the type of the cookie information that server is safeguarded.
In embodiments of the present invention, the type of cookie information can be divided into two kinds, and a kind of is server generation and page
The related cookie information of face information, the part cookie information is safeguarded by server;Another kind is terminal device generation
The cookie information related to the personal information of user, the part cookie information safeguarded by terminal device.It is optional
, in terminal device or server generation cookie information, the class of cookie information can be carried in cookie information
Type.
After server acquires the first cookie information, server is obtained each in the first cookie information
The type of cookie information, and judge to whether there is the first kind in a plurality of cookie information that the first cookie information includes
Cookie information.
When server determines that the first cookie information includes the cookie information of the first kind, server judges first
Whether version information is latest version information.Optionally, server can obtain corresponding first domain name of the first cookie information,
Corresponding this information of the third edition of the first domain name is obtained in the configuration information of server, this information of the third edition is the first domain name correspondence
Latest version information, and according to first version information and the third edition this information, judge whether first version information is latest edition
This information.If specifically, first version information is with the third edition, and this information is identical, illustrating that first version information is believed for latest edition
Breath, otherwise, first version information is not latest version information.
If S203, judged result are no, cookie information more new command is sent to terminal device, cookie information updates
Instruction includes latest version information and the corresponding newest cookie information of latest version information so that terminal device according to
Cookie information more new command updates first version information and the first cookie information.
If server judges that the first version information of the first cookie information is not latest version information, server is needed
Will to terminal device in the first cookie information be updated.Optionally, can to obtain the first domain name corresponding most for server
New cookie information, cookie information more new command is sent to terminal device, and cookie information more new command includes latest edition
This information newest cookie information corresponding with latest version information.
After terminal device receives cookie information more new command, optionally, terminal device can be by first version
Information updating is latest version information, and the first cookie information is replaced with into newest cookie information, and optionally, terminal device is also
First kind cookie information in first cookie information can be replaced with newest cookie information, other types of cookie
Information keeps constant.Certainly, first version information updating can also be latest version information by terminal device, and delete first
Cookie information so that terminal device next time to the server request page when, then the first cookie information is updated.
Cookie information management method provided in an embodiment of the present invention, sends page request and believes in terminal device to server
During breath, the first cookie information corresponding with the domain name for treating requests for page and cookie letters are carried in page request message
Cease corresponding first version information.Accordingly, after the page request message that server receives terminal device transmission, service
Device can obtain the first cookie information and first version information in page request message, and according to the latest edition being locally stored
This information, judges whether the first cookie information stored in terminal device is newest cookie information, if it is not, then control terminal
The first cookie information and first version information that equipment is stored to terminal device are updated, so that in terminal device
Cookie information and version information are newest, and then avoid server according to the page info of cookie information generation error,
And then avoid the page of terminal device loading error.
On the basis of embodiment illustrated in fig. 2, optionally, first is not included in server determines the first cookie information
During the cookie information of type, can also continue to judge whether to need send the second cookie information to terminal device.Specifically,
Embodiment shown in Figure 3.
Fig. 3 is the schematic flow sheet two of cookie information management method provided in an embodiment of the present invention.Implementing shown in Fig. 2
On the basis of example, Fig. 3 is referred to, the method can include:
S301, receive terminal device transmission page request message after, first is obtained in page request message
Cookie information and the corresponding first version information of the first cookie information.
It should be noted that the implementation procedure of S301 may refer to the implementation procedure of S201, no longer repeated herein.
S302, judge whether include the cookie information of the first kind in the first cookie information.
If so, then performing S303-S306.
If it is not, then performing S307-S311.
S303, judge whether first version information is latest version information.
If so, then performing S304.
If it is not, then performing S305-S306.
It should be noted that the implementation procedure of S303 may refer to the implementation procedure of S202, no longer repeated herein.
S304, according to the first cookie information, obtain the corresponding page info of page request message, and send out to terminal device
Send page info.
S305, to terminal device send cookie information more new command so that terminal device according to cookie information update
Instruction updates first version information and the first cookie information.
It should be noted that the implementation procedure of S305 may refer to the implementation procedure of S203, no longer repeated herein.
S306, according to newest cookie information, obtain the corresponding page info of page request message, and send out to terminal device
Send page info.
S307, corresponding first domain name of the first cookie information of acquisition.
It should be noted that processes of the S202 in Fig. 2 embodiments to obtaining the first domain name is described in detail, this
Place is no longer repeated.
S308, judge the first domain name whether to the second cookie information that there should be the first kind.
If so, then performing S309-S310.
If it is not, then performing S311.
Optionally, whether each domain name can in the server be pre-set to that there should be cookie information, for example, can set
Put the configuration information shown in table 2:
Table 2
Domain name | Whether to the cookie information that should have the first kind |
Domain name 1 | It is |
Domain name 2 | It is no |
Domain name 3 | It is no |
Domain name 4 | It is |
…… | …… |
Accordingly, whether server can judge the first domain name to that should have the first kind according to the configuration information shown in table 2
The second cookie information.
S309, acquisition the second cookie information and the corresponding second edition information of the first domain name, and sent to terminal device
Second cookie information and second edition information.
Optionally, after server sends the second cookie information and second edition information to terminal device, according to the
Two cookie informations update the first cookie information and correspondence storage second edition information.Optionally, terminal device can be by
Two cookie informations are added in the first cookie information.Before being updated to the first cookie information due to terminal device, first
Do not include the cookie information of the first kind in cookie information, therefore, it is updated to the first cookie information in terminal device
Before, the first cookie information is also without corresponding version information.Accordingly, terminal device can directly by the cookie after renewal
Information storage corresponding with second edition information.
S310, the corresponding page info of page request message is obtained according to the second cookie information, and sent out to terminal device
Send page info.
After server sends the second cookie information and second edition information to terminal device, server is always according to the
One cookie information and the second cookie information obtain the corresponding page info of page request message, and send page to terminal device
Face information, so as to terminal device carries out the page according to page info show.
S311, the corresponding page info of acquisition page request message, and send page info to terminal device.
When cookie information corresponding in the absence of current page in server, server direct access page request message
Corresponding page info.
Below, by specific example, the method shown in Fig. 3 embodiments is described in detail.
Exemplary, it is assumed that according to second level domain in terminal device, cookie information is stored.When terminal device is needed
Will to the server request page 1 when, terminal device obtains the URL addresses of the page 1, and terminal device obtains according to the URL addresses of the page 1
Take the corresponding second level domain a.b.com of the page 1.Terminal device obtains corresponding 10 cookie informations of a.b.com local, point
Cookie information 1-cookie information 10 is not designated as, it is further assumed that cookie information 1-cookie information 5 is the first kind (server
The page info of maintenance), cookie information 6-cookie information 10 is Second Type (the individual subscriber letter of maintaining terminal equipment
Breath).Assume again that 10 version informations of cookie information are " 2 ".
Terminal device sends the corresponding page request message of the page 1 to server, and is carried in page request message
Cookie information 1-cookie information 10 and version information " 2 ".
After server receives the page request message, server obtains cookie information 1- in page request message
Cookie information 10 and version information " 2 ".Because server judges that 10 cookie informations include the first kind
Cookie information, therefore, server continues to judge whether version information " 2 " is latest version information.Optionally, server is obtained
The corresponding version informations of the a.b.com " 3 " being locally stored, therefore, it is possible to judge that cookie information 1-cookie in terminal device
The corresponding version information " 2 " of information 10 is not latest version information.
Server obtains the corresponding newest cookie informations of a.b.com, and cookie information 11-cookie information is designated as respectively
15.Server sends cookie information more new command to terminal device, and cookie is carried in the cookie information more new command
Information 11-cookie information 15 and latest version information " 3 ".
Terminal device deletes the corresponding cookie information 1- of a.b.com according to the cookie information for receiving more new command
Cookie information 5, and cookie information 11-cookie information 15 is stored in the corresponding files of a.b.com.Terminal device will also
Version information " 2 " is updated to version information " 3 ".
After server is transmitted across cookie information more new command to terminal device, server is according to cookie information
11-cookie information 15, cookie information 6-cookie information 10 and other information (page framework information etc.) generation page letter
Breath, and the page info of generation is sent to terminal device, so as to terminal device carries out the page according to page info show.
Fig. 4 is the structural representation one of server provided in an embodiment of the present invention.Fig. 4 is referred to, the server can be wrapped
The first acquisition module 11, the first judge module 12 and sending module 13 are included, wherein,
First acquisition module 11 is used for, after the page request message for receiving terminal device transmission, in the page
The first cookie information and the corresponding first version information of first cookie information are obtained in the solicited message of face;
First judge module 12 is used for, it is determined that first cookie information includes the cookie of the first kind
During information, judge whether first version information is latest version information, the first kind is what the server was safeguarded
The type of cookie information;
The sending module 13 is used for, when it is not latest version information that the judge module judges first version information,
Cookie information more new command is sent to the terminal device, the cookie information more new command includes the latest edition
Information and the corresponding newest cookie information of the latest version information, so that the terminal device is according to the cookie information
More new command updates the first version information and first cookie information.
Server provided in an embodiment of the present invention can perform the technical scheme shown in above method embodiment, and it realizes former
Reason and beneficial effect are similar, are no longer repeated herein.
Fig. 5 is the structural representation two of server provided in an embodiment of the present invention.On the basis of embodiment illustrated in fig. 4,
Fig. 5 is referred to, the server also includes the second acquisition module 14, the second judge module 15 and the 3rd acquisition module 16, wherein,
Second acquisition module 14 is used for, it is determined that not including the first kind in first cookie information
During cookie information, corresponding first domain name of first cookie information is obtained;
Second judge module 15 is used for, and judging whether first domain name is corresponding has the second of the first kind
Cookie information;
3rd acquisition module 16 is used for, and judges that first domain name correspondence has described the in second judge module
During the second cookie information of one type, second cookie information and the corresponding second edition of first domain name are obtained
Information;
The sending module 13 is additionally operable to, and second cookie information and the second edition are sent to the terminal device
This information, so that the terminal device updates first cookie information according to second cookie information and correspondence is deposited
Store up the second edition information.
In a kind of possible implementation method, first judge module 12 specifically for:
Obtain corresponding first domain name of first cookie information;
Corresponding this information of the third edition of first domain name, the third edition are obtained in the configuration information of the server
This information is the corresponding latest version information of first domain name;
According to the first version information and described this information of the third edition, judge whether the first version information is newest
Version information.
In alternatively possible implementation method, the server also includes the 4th acquisition module 17, wherein,
4th acquisition module 17 is used for, and judges that first version information is latest edition in first judge module 12
During information, according to first cookie information, the corresponding page info of the page request message is obtained;
The sending module 13 is additionally operable to, and the page info is sent to the terminal device, so that the terminal device
The page is carried out according to the page info to show.
In alternatively possible implementation method, the server also includes the 5th acquisition module 18, wherein,
5th acquisition module 18 is used for, and cookie information is sent more to the terminal device in the sending module 13
After new command, according to the newest cookie information, the corresponding page info of the page request message is obtained;
The sending module 13 is additionally operable to, and the page info is sent to the terminal device, so that the terminal device
The page is carried out according to the page info to show.
Server provided in an embodiment of the present invention can perform the technical scheme shown in above method embodiment, and it realizes former
Reason and beneficial effect are similar, are no longer repeated herein.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead to
The related hardware of programmed instruction is crossed to complete.Foregoing program can be stored in a computer read/write memory medium.The journey
Sequence upon execution, performs the step of including above-mentioned each method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or
Person's CD etc. is various can be with the medium of store program codes.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;To the greatest extent
Pipe has been described in detail with reference to foregoing embodiments to the present invention, it will be understood by those within the art that:Its according to
The technical scheme described in foregoing embodiments can so be modified, or which part or all technical characteristic are entered
Row equivalent;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technology
The scope of scheme.
Claims (10)
1. a kind of cookie information management method, it is characterised in that be applied to server, methods described includes:
After the page request message for receiving terminal device transmission, cookie letters are obtained in the page request message
Breath and the corresponding first version information of first cookie information;
When it is determined that first cookie information includes the cookie information of the first kind, whether first version information is judged
It is latest version information, the first kind is the type of the cookie information that the server is safeguarded;
If judged result is no, cookie information more new command is sent to the terminal device, the cookie information updates
Instruction includes the latest version information and the corresponding newest cookie information of the latest version information, so that the terminal
Equipment updates the first version information and first cookie information according to the cookie information more new command.
2. method according to claim 1, it is characterised in that it is determined that not including first in first cookie information
During the cookie information of type, methods described also includes:
Obtain corresponding first domain name of first cookie information;
Judge whether first domain name corresponds to the second cookie information for having the first kind;
If so, second cookie information and the corresponding second edition information of first domain name are then obtained, and to the end
End equipment sends second cookie information and the second edition information, so that the terminal device is according to described second
Cookie information updates first cookie information and the correspondence storage second edition information.
3. method according to claim 1 and 2, it is characterised in that judge whether first version information is latest edition letter
Breath, including:
Obtain corresponding first domain name of first cookie information;
Corresponding this information of the third edition of first domain name, this letter of the third edition are obtained in the configuration information of the server
It is the corresponding latest version information of first domain name to cease;
According to the first version information and described this information of the third edition, judge whether the first version information is latest edition
Information.
4. method according to claim 1 and 2, it is characterised in that first version information is latest version information if judging,
Methods described also includes:
According to first cookie information, the corresponding page info of the page request message is obtained;
The page info is sent to the terminal device, so as to the terminal device carries out the page according to the page info show
Show.
5. method according to claim 1 and 2, it is characterised in that sending cookie information more to the terminal device
After new command, also include:
According to the newest cookie information, the corresponding page info of the page request message is obtained;
The page info is sent to the terminal device, so as to the terminal device carries out the page according to the page info show
Show.
6. a kind of server, it is characterised in that including the first acquisition module, the first judge module and sending module, wherein,
First acquisition module is used for, after the page request message for receiving terminal device transmission, in the page request
The first cookie information and the corresponding first version information of first cookie information are obtained in information;
First judge module is used for, it is determined that first cookie information includes the cookie information of the first kind
When, judging whether first version information is latest version information, the first kind is the cookie letters that the server is safeguarded
The type of breath;
The sending module is used for, when it is not latest version information that the judge module judges first version information, to described
Terminal device send cookie information more new command, the cookie information more new command include the latest version information with
The corresponding newest cookie information of the latest version information, so as to the terminal device updates according to the cookie information refer to
Order updates the first version information and first cookie information.
7. server according to claim 6, it is characterised in that the server also includes the second acquisition module, second
Judge module and the 3rd acquisition module, wherein,
Second acquisition module is used for, it is determined that not including the cookie information of the first kind in first cookie information
When, obtain corresponding first domain name of first cookie information;
Second judge module is used for, and judges that whether corresponding the 2nd cookie for having the first kind of first domain name believes
Breath;
3rd acquisition module is used for, and judges that the first domain name correspondence has the first kind in second judge module
The second cookie information when, obtain second cookie information and the corresponding second edition information of first domain name;
The sending module is additionally operable to, and sends second cookie information to the terminal device and the second edition is believed
Breath, so that the terminal device updates first cookie information and correspondence storage institute according to second cookie information
State second edition information.
8. the server according to claim 6 or 7, it is characterised in that first judge module specifically for:
Obtain corresponding first domain name of first cookie information;
Corresponding this information of the third edition of first domain name, this letter of the third edition are obtained in the configuration information of the server
It is the corresponding latest version information of first domain name to cease;
According to the first version information and described this information of the third edition, judge whether the first version information is latest edition
Information.
9. the server according to claim 6 or 7, it is characterised in that the server also includes the 4th acquisition module, its
In,
4th acquisition module is used for, when it is latest version information that first judge module judges first version information,
According to first cookie information, the corresponding page info of the page request message is obtained;
The sending module is additionally operable to, and the page info is sent to the terminal device, so that the terminal device is according to institute
State page info and carry out the page and show.
10. the server according to claim 6 or 7, it is characterised in that the server also includes the 5th acquisition module,
Wherein,
5th acquisition module is used for, the sending module to the terminal device send cookie information more new command it
Afterwards, according to the newest cookie information, the corresponding page info of the page request message is obtained;
The sending module is additionally operable to, and the page info is sent to the terminal device, so that the terminal device is according to institute
State page info and carry out the page and show.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710010587.8A CN106790635B (en) | 2017-01-06 | 2017-01-06 | Cookie information management method and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710010587.8A CN106790635B (en) | 2017-01-06 | 2017-01-06 | Cookie information management method and server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106790635A true CN106790635A (en) | 2017-05-31 |
CN106790635B CN106790635B (en) | 2020-11-24 |
Family
ID=58951096
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710010587.8A Active CN106790635B (en) | 2017-01-06 | 2017-01-06 | Cookie information management method and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106790635B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108388657A (en) * | 2018-03-06 | 2018-08-10 | 五八有限公司 | Cookie storage methods, device, equipment and readable storage medium storing program for executing |
CN110012127A (en) * | 2019-04-09 | 2019-07-12 | 吉旗(成都)科技有限公司 | A kind of cross-domain name cookie sharing method and device, storage medium and terminal |
CN110445744A (en) * | 2018-05-02 | 2019-11-12 | 阿里巴巴集团控股有限公司 | A kind of data processing method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102769625A (en) * | 2012-07-25 | 2012-11-07 | 亿赞普(北京)科技有限公司 | Client-side Cookie information acquisition method and device |
CN104516973A (en) * | 2014-12-26 | 2015-04-15 | 北京奇虎科技有限公司 | Method and device for accessing page |
US9219787B1 (en) * | 2014-11-26 | 2015-12-22 | Ensighten, Inc. | Stateless cookie operations server |
US20160036929A1 (en) * | 2011-07-01 | 2016-02-04 | Google Inc. | Long term targeting of content items |
-
2017
- 2017-01-06 CN CN201710010587.8A patent/CN106790635B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160036929A1 (en) * | 2011-07-01 | 2016-02-04 | Google Inc. | Long term targeting of content items |
CN102769625A (en) * | 2012-07-25 | 2012-11-07 | 亿赞普(北京)科技有限公司 | Client-side Cookie information acquisition method and device |
US9219787B1 (en) * | 2014-11-26 | 2015-12-22 | Ensighten, Inc. | Stateless cookie operations server |
CN104516973A (en) * | 2014-12-26 | 2015-04-15 | 北京奇虎科技有限公司 | Method and device for accessing page |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108388657A (en) * | 2018-03-06 | 2018-08-10 | 五八有限公司 | Cookie storage methods, device, equipment and readable storage medium storing program for executing |
CN108388657B (en) * | 2018-03-06 | 2022-04-05 | 五八有限公司 | Cookie storage method, device, equipment and readable storage medium |
CN110445744A (en) * | 2018-05-02 | 2019-11-12 | 阿里巴巴集团控股有限公司 | A kind of data processing method and device |
CN110445744B (en) * | 2018-05-02 | 2022-06-28 | 阿里巴巴集团控股有限公司 | Data processing method and device |
CN110012127A (en) * | 2019-04-09 | 2019-07-12 | 吉旗(成都)科技有限公司 | A kind of cross-domain name cookie sharing method and device, storage medium and terminal |
CN110012127B (en) * | 2019-04-09 | 2022-08-09 | 吉旗(成都)科技有限公司 | Cross-domain name cookie sharing method and device, storage medium and terminal |
Also Published As
Publication number | Publication date |
---|---|
CN106790635B (en) | 2020-11-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107463613A (en) | Page loading method and device | |
CN108510389A (en) | Intelligent contract call method, equipment and readable storage medium storing program for executing based on block chain | |
CN107087033A (en) | Information push method, device, storage medium and computer equipment | |
CN111507717B (en) | Data processing method, device, block node and computer readable storage medium | |
US10567265B2 (en) | Solution test method and server | |
CN103297291A (en) | Method and system for monitoring website real-time statuses | |
CN109993524A (en) | Card certificate management method, device, equipment and computer readable storage medium | |
CN106790635A (en) | Cookie information management method and server | |
CN106021512A (en) | Page refresh method and apparatus | |
CN106209875A (en) | Method for processing business based on multi-services device and service server | |
CN106034126B (en) | The method of calibration and device of identifying code | |
CN107070729A (en) | Main equipment elects method and system in network linking | |
CN104539742A (en) | Information push method, information push device and information push system | |
CN109195157A (en) | application management method, device and terminal | |
CN106126683A (en) | Page display method and terminal unit | |
CN108196902A (en) | For showing the method and apparatus for advertisement of spreading its tail | |
US11886281B2 (en) | Artificial intelligence engine providing automated error resolution | |
CN103559048A (en) | Data storage method and data storage device | |
CN110336813A (en) | A kind of access control method, device, equipment and storage medium | |
CN111382336B (en) | Data acquisition method and system | |
CN106804056A (en) | A kind of method and apparatus for providing the access information of WAP | |
CN112364028A (en) | Method and device for improving concurrency capability of online examination system and electronic equipment | |
CN107657672A (en) | User registers method, apparatus, system and storage medium | |
CN106843928A (en) | The remote repairing method and apparatus of application program | |
CN106202373A (en) | Multiple terminals data processing method and data server |
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 |