CN106446640A - User identification method and server - Google Patents

User identification method and server Download PDF

Info

Publication number
CN106446640A
CN106446640A CN201610967523.2A CN201610967523A CN106446640A CN 106446640 A CN106446640 A CN 106446640A CN 201610967523 A CN201610967523 A CN 201610967523A CN 106446640 A CN106446640 A CN 106446640A
Authority
CN
China
Prior art keywords
etag
server
user
resource
client
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
CN201610967523.2A
Other languages
Chinese (zh)
Other versions
CN106446640B (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.)
Neusoft Corp
Original Assignee
Neusoft Corp
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 Neusoft Corp filed Critical Neusoft Corp
Priority to CN201610967523.2A priority Critical patent/CN106446640B/en
Publication of CN106446640A publication Critical patent/CN106446640A/en
Application granted granted Critical
Publication of CN106446640B publication Critical patent/CN106446640B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • 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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]

Abstract

The invention discloses a user identification method and a server and aims to solve the technical problem that user identification cannot be realized under the circumstance that Cookies are deleted in the prior art. The user identification method includes that: the server receives a resource access request sent by a client side, wherein the resource access request includes a uniform resource locator (URL); if the resource access request does not include an entity tag ETag, a user unique identity is allocated for the client side, wherein the user unique identity is used for the server to identify the client side; an ETag including the user unique identity is generated, and the ETag and a resource corresponding to the URL are returned to the client side so that the resource access request carrying the ETag can be sent to the server when the client side re-accesses the server.

Description

The method of user's identification and server
Technical field
The present invention relates to internet arena, in particular it relates to a kind of method of user's identification and server.
Background technology
Cookie refer to website in order to distinguish user identity conversate tracking and be stored in the number on user local terminal According to.The most typical application of Cookie is exactly the automatic identification user identity when User logs in website.Or, website can also profit Follow the tracks of the custom of statistic of user accessing website with Cookie, provide the user personalized service.For example, advertisement launching platform is permissible Record the identity of user by Cookie, what advertisement monitoring user has seen, put what advertisement, seen which net Page, is calculated the hobby of user, and then pushes more accurately advertisement again by these information.
But, the functions such as " seamless browse ", " privacy mode " released by increasing browser, under these functions, clear Looking at device will not stored cookie again when browsing webpage.In addition, in order to avoid information leakage, most users are also got used to deleting Cookie.In this case, web page server just cannot pass through the identity of Cookie identifying user again.
Content of the invention
It is an object of the invention to provide a kind of method of user's identification and server, in order to solve prior art in Cookie The technical problem of user's identification is cannot be carried out in the case of being deleted.
To achieve these goals, the present invention provides a kind of method of user's identification, including:
Server receives the resource access request that client sends, and described resource access request includes URL URL;
If described resource access request does not include entity indicia ETag, it is described client distributing user unique mark, institute State user's unique mark and identify described client for described server;
Generate and include described user uniquely identified ETag, described ETag and the corresponding resource of described URL are back to Described client, described ETag subsequently sends a request to all to carry during described server described every time for described client ETag.
Alternatively, methods described also includes:If described resource access request includes ETag, whether determine in described ETag Carry user's unique mark;
If not carrying user's unique mark in described ETag, it is described client distributing user unique mark;
Generate and include described user uniquely identified ETag, and it is described to replace that described ETag is sent to described client The current ETag of client.
Alternatively, methods described also includes:If carrying described user's unique mark in described ETag, according to described user Unique mark identifies described client.
Alternatively, the corresponding resource of described URL is picture resource, and described generation includes described user's uniquely identified ETag, including:
The summary info of described user's unique mark and described picture resource is spliced into ETag, described ETag is back to Described client.
Alternatively, the corresponding resource of described URL is picture resource, and described ETag also includes the summary letter of described picture resource Breath, methods described also includes:
Determine the summary info in the summary info of picture resource and described ETag of corresponding described URL in described server Inconsistent;
The summary info of the picture resource after change is spliced into new ETag with described user's unique mark;
Picture resource after described new ETag and change is back to described client.
Alternatively, the corresponding resource of described URL is picture resource, and described ETag also includes the summary letter of described picture resource Breath, methods described also includes:
Determine the summary info in the summary info of picture resource and described ETag of corresponding described URL in described server Unanimously;
Return 304 conditional codes to described client, described 304 conditional codes are used for indicating described client from local cache Obtain described picture resource.
The present invention also provides a kind of server, including:
Receiving unit, for receiving the resource access request of client transmission, described resource access request includes unified money Source location accords with URL;
Allocation unit, for when described resource access request does not include entity indicia ETag, being described client distribution User's unique mark, described user's unique mark is used for described server and identifies described client;
Response unit, includes described user uniquely identified ETag for generating, and described ETag and described URL is corresponded to Resource be back to described client, described ETag subsequently sends a request to equal during described server every time for described client Carry described ETag.
Alternatively, described server also includes:
First determining unit, for when described resource access request includes ETag, determining in described ETag whether take Band user's unique mark;
Described allocation unit is used for, and when not carrying user's unique mark in described ETag, is that described client distribution is used Family unique mark;
Described response unit is used for, and generates and includes described user uniquely identified ETag, and described ETag is sent to institute State the client ETag current to replace described client.
Alternatively, described server also includes:
Recognition unit, during for carrying described user's unique mark in described ETag, according to described user's unique mark Identify described client.
Alternatively, the corresponding resource of described URL is picture resource, and described server also includes:
Concatenation unit, for the summary info of described user's unique mark and described picture resource is spliced into ETag, will Described ETag is back to described client.
Alternatively, the corresponding resource of described URL is picture resource, and described ETag also includes the summary letter of described picture resource Breath, described server also includes:Second determining unit, for determining the picture resource of corresponding described URL in described server Summary info is inconsistent with the summary info in described ETag;Concatenation unit, for believing the summary of the picture resource after change Breath and described user's unique mark are spliced into new ETag;
Described response unit is used for, and the picture resource after described new ETag and change is back to described client.
Alternatively, the corresponding resource of described URL is picture resource, and described ETag also includes the summary letter of described picture resource Breath, described server also includes:Second determining unit, for determining the picture resource of corresponding described URL in described server Summary info is consistent with the summary info in described ETag;
Described response unit is used for, and returns 304 conditional codes to described client, and described 304 conditional codes are used for indicating described Client obtains described picture resource from local cache.
By technique scheme, server, can be according to this after the resource access request receiving client transmission User's unique mark in the ETag of resource access request is identified to described client, the cache file of ETag and browser It is stored together, in order to improve the loading speed of resource, the cache file of browser generally will not be emptied by user, therefore, In the case that Cookie is deleted, server remains able to client is identified, and solves prior art in Cookie quilt Just the technical problem of user's identification is cannot be carried out after deletion.
Other features and advantages of the present invention will be described in detail in subsequent specific embodiment part.
Brief description
Accompanying drawing is used to provide a further understanding of the present invention, and constitutes the part of description, with following tool Body embodiment is used for explaining the present invention together, but is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is a kind of schematic diagram of implementation environment of the embodiment of the present invention;
Fig. 2 is a kind of schematic flow sheet of the method for user's identification provided in an embodiment of the present invention;
Fig. 3 is the schematic flow sheet of the method for another kind user's identification provided in an embodiment of the present invention;
Fig. 4 is the schematic flow sheet of the method for another user's identification provided in an embodiment of the present invention;
Fig. 5 A is a kind of structural representation of server provided in an embodiment of the present invention;
Fig. 5 B is the structural representation of another kind server provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described in detail.It should be appreciated that this place is retouched The specific embodiment stated is merely to illustrate and explains the present invention, is not limited to the present invention.
In order that those skilled in the art is easier to understand technical scheme provided in an embodiment of the present invention, right first below Related technical term is introduced.
ETag is the entity indicia Entity of URL (Uniform Resoure Locator, URL) Tag.ETag is the ingredient of the protocol header of HTTP (HyperText Transfer Protocol, HTML (Hypertext Markup Language)). In the prior art, ETag is mainly used in avoiding picture repeated downloads to cause the wasting of resources, and concrete mechanism is as follows:Browser first Secondary when browsing a certain webpage, browser initiates the request of download pictures to server.Server returns picture, and adds one for picture Individual identity ID is as labelling.So, user is refreshing this webpage, and when asking same pictures again, browser can will be somebody's turn to do ID carries in the ETag of request message.After server receives this request message, parse this request message, judge ID and expired Time, if server finds that same user downloaded this picture before expired duration, directly return 304 conditional codes, instruction Browser directly reads the picture of local cache, it is to avoid the wasting of resources.
After in prior art, the Cookie of client-cache is deleted, server cannot be carried out user's identification, and how sharp Carry out user's identification with ETag, current those skilled in the art also do not consider.
Fig. 1 is a kind of schematic diagram of implementation environment of the embodiment of the present invention, as shown in figure 1, this implementation environment can include Client 110 and server 120, wherein, this client 110 can be smart mobile phone, panel computer etc..With client in Fig. 1 End 110 is to illustrate as a example notebook computer.This server 120 can be web page server.
Specifically, this client 110 is provided with browser 1101, when browsing webpage using this browser 1101, client End sends resource access request by network to server 120, to access all kinds of websites.
The embodiment of the present invention provides a kind of method of user's identification, and the executive agent of the method can be shown in Fig. 1 Server 120.As shown in Fig. 2 the method includes:
S201, server receive the resource access request that client sends, and described resource access request includes unified resource Finger URL URL.
URL is a kind of succinct of the position to the resource that can obtain from the Internet and access method Expression, be the address of standard resource on the Internet.Each file on the Internet has a unique URL, and it comprises Information indicates how the position of file and browser should process this document.That is, this resource access request is used for Obtain the corresponding resource of this URL from server.
S202, this server, when described resource access request does not include entity indicia ETag, are described client distribution User's unique mark, described user's unique mark is used for described server and identifies described client.
Wherein, this resource access request is the request of http protocol, and this server is in the protocol header of this resource access request In do not get during ETag it is believed that this client is to access this website for the first time.In this case, this server is this client One user's unique mark of end distribution, for this client of uniquely tagged.
What deserves to be explained is, have the reason do not include ETag in this resource access request following two, one is this client Before from having not visited this server, two is that this client has been cleared browser rs cache after accessing this server, for Both of these case, when server does not obtain ETag in resource access request, all thinks that this client is to access for the first time.
S203, this server generate and include described user uniquely identified ETag, and described ETag and described URL is corresponded to Resource be back to described client.
Wherein, described client is after the ETag receiving described server-assignment, subsequently equal during each access server Send the resource access request carrying described ETag to described server.
Therefore, in a kind of possible implementation of the embodiment of the present invention, if the resource that this server receives accesses Request includes ETag, then obtain the user's unique mark in described ETag, and according to the identification of described user's unique mark Client, wherein, this user's unique mark is described server-assignment to described client.
Specifically, this server is when thinking this client is to access for the first time, according to resource access request to this client End sends resource access response, carries this user's unique mark in the ETag in the protocol header of this resource access response.This resource Message body portion in access response carries the corresponding resource of this URL.So, this client obtains the resource of this request, And in this resource of subsequent access, this user's unique mark, server all can be carried in the ETag of resource access request After getting this user's unique mark, you can user's identification is carried out to this client, with the session to this client carry out with Track.
Using technique scheme, server, can be according to this after the resource access request receiving client transmission User's unique mark in the ETag of resource access request is identified to described client, the cache file of ETag and browser It is stored together, in order to improve the loading speed of resource, the cache file of browser generally will not be emptied by user, therefore, In the case that Cookie is deleted, server remains able to client is identified, and solves prior art in Cookie quilt Just the technical problem of user's identification is cannot be carried out after deletion.
In order that those skilled in the art more understands technical scheme provided in an embodiment of the present invention, below to above-mentioned side Method step is described in detail.
What deserves to be explained is, originally carry in existing ETag is the summary info of picture resource, and server is obtaining To after this summary info, can compare with the summary info of current picture resource in server, if both summary infos Unanimously, show that picture resource is changed, server then can return 304 yards of instruction client acquisition figures in local cache Piece resource, if both summary infos are inconsistent, shows that the picture resource of server changes, in this case, service The summary info of the picture resource after the picture resource after change and change can be back to client as new ETag by device End.
That is, in existing http protocol, client sends may wrap to the resource access request message of server Include ETag.In this case, the resource access request that this server receives includes ETag, then this server can determine Whether carry user's unique mark in this ETag, if not carrying user's unique mark in this ETag, distributing for this client and using Family unique mark, and generate that to be sent to this client including described user uniquely identified ETag current to replace this client ETag.
Specifically, picture repeated downloads can be avoided to cause the problem of the wasting of resources to ensure ETag script, at this In a kind of possible implementation of bright embodiment, when the corresponding resource of the URL in resource access request is picture resource, with Upper described generation includes described user uniquely identified ETag and specifically includes:By described user's unique mark and described picture money The summary info in source is spliced into ETag.So, client accesses in the resource access request that described server sends again ETag had not only included the unique mark of user but also had included the summary info of picture resource, so that server both can be according to user Unique mark is identified to client, can avoid the repeated downloads of picture according to the summary info of picture resource again.
Wherein, the summary info of described picture resource can be the MD5 (Message-Digest of picture resource Algorithm 5, Message-Digest Algorithm 5) value.
Further, this server, after the resource access request subsequently getting the transmission of this client, obtains in ETag Summary info, in determining this server to should resource request access in the summary info of picture resource of URL and institute State summary info in ETag inconsistent when, this server will change after picture resource summary info unique with described user Mark is spliced into new ETag, and the picture resource after described new ETag and change is back to described client.Meanwhile, This server obtains the user's unique mark in the ETag of this resource access request, identifies this client, the visit to this client Ask and recorded.
Determine this server in should resource request access in URL picture resource summary info with described When summary info in ETag is consistent, this server to described client return 304 conditional codes, for indicate described client from Described picture resource is obtained, it is to avoid the acquisition that repeats of picture resource causes the wasting of resources in local cache.
Using said method, the embodiment of the present invention is based on ETag it can be avoided that client repeated downloads figure guaranteeing server Under the premise of piece, it is also possible that server can be identified to client according to ETag, solve prior art in Cookie quilt Just the technical problem of user's identification is cannot be carried out after deletion.
Fig. 2 is the explanation as executive agent, user identification method provided in an embodiment of the present invention being carried out using server, Fig. 3 is the user identification method being exemplified according to another exemplary enforcement, embodies interacting between client and server, such as Shown in Fig. 3, including:
S301, user end to server send resource access request, and described resource access request includes unified resource positioning Symbol URL.
S302, server receive described resource access request, and when described resource access request does not include ETag, for visitor Family end distributing user unique mark.
Wherein, described user's unique mark identifies this client for this server.
S303, server generate and include described user uniquely identified ETag, and described ETag and described URL is corresponded to Resource be back to client.
The corresponding resource of described URL and ETag that S304, client the reception server send.
Wherein, described ETag includes user's unique mark that server distributes for client.
S305, user end to server send the resource access request including described ETag.
S306, server receive the resource access request of the described ETag of described inclusion, and according to the user in described ETag Unique mark identifies described client.
Using said method, when client is subsequently every time as server transmission resource access request, all accessing in resource please User's unique mark of server-assignment is carried, so, server can be to this according to this user's unique mark in the ETag asking Client is identified.ETag is stored together with the cache file of browser, in order to improve the loading speed of resource, Yong Hutong The cache file of browser is emptied by Chang Buhui, and therefore, in the case that Cookie is deleted, server remains able to client End is identified, and solves the technical problem that prior art just cannot be carried out user's identification after Cookie is deleted.
Above-mentioned be merely illustrative, in some cases, client sends and includes to the resource access request of server ETag, but this ETag does not carry user's unique mark of this client.In order to ensure that server all the time can be proper for client Really distributing user unique mark, in the embodiment of the present invention, server, can also be really after determining that resource access request includes ETag Whether this ETag fixed carries user's unique mark, and when this ETag does not carry user's unique mark, is client distributing user Unique mark, and generate and be back to the client ETag current to replace client including described user uniquely identified ETag. Ensure that the follow-up resource access request sending of client all carries described user's unique mark.
As a example implementation environment shown in below by Fig. 1, a kind of method of user's identification provided in an embodiment of the present invention is entered Row describes in detail, as shown in figure 4, the method includes:
S401, client 110 send first resource access request to server 120, and this first resource access request includes The URL of website homepage icon logo.
S402, server 120 receive this first resource access request, and are this client 110 distributing user unique mark.
The MD5 value of the logo of this website homepage and this user's unique mark are spliced into by S403, this server 120 ETag.
S404, this server 120 return the first resource access sound including this logo and this ETag to this client 110 Should.
S405, this client 110 receive this first resource access response.
S406, this client 110 send Secondary resource access request, this Secondary resource access request to this server 120 URL including this ETag and this logo.
S407, this server 120 receive this Secondary resource access request, obtain in the ETag of this Secondary resource access request MD5 value and user's unique mark.
S408, this server 120 record to the access of this client 110 according to this user's unique mark.
So, server 120 is carried out only according to the client that user's unique mark can access this server 120 to each One identification.
Whether the MD5 value that S409, this server 120 compare the current logo in this website is consistent with the MD5 value in this ETag.
Further, if the MD5 value of the current logo in this website is consistent with the MD5 value in this ETag, execution step S410 To S411;If the MD5 value of the current logo in this website is inconsistent with the MD5 value in this ETag, execution step S412 to S414.
S410, this server 120 return the Secondary resource access response including 304 conditional codes to this client 110.
Wherein, this 304 conditional code is used for indicating that this client obtains resource from local cache.
S411, this client 110 receive this Secondary resource access response, obtain this website logo from local cache, and The ETag keeping current is constant.
The MD5 value of current for this website logo and this user's unique mark are spliced into new by S412, this server 120 ETag.
S413, this server 120 return to this client 110 includes the current logo in 200 conditional codes, this website and this The Secondary resource access response of new ETag.
Wherein, this 200 conditional code is used for representing that request is successful.
S414, this client 110 receive this Secondary resource access response, and it is new to carry this in following resource access request ETag.
Using said method, the embodiment of the present invention is based on ETag it can be avoided that client repeated downloads figure guaranteeing server Under the premise of piece, it is also possible that server can be identified to client according to ETag, solve prior art in Cookie quilt Just the technical problem of user's identification is cannot be carried out after deletion.
What deserves to be explained is, for said method embodiment, in order to be briefly described, therefore it is all expressed as a series of dynamic Combine, but those skilled in the art should know, the present invention is not limited by described sequence of movement.Secondly, originally Skilled person also should know, embodiment described in this description belongs to preferred embodiment, and involved action is simultaneously It is not necessarily necessary to the present invention.
The embodiment of the present invention also provides a kind of server 500, for implementing a kind of side of the user's identification shown in above-mentioned Fig. 2 Method, as shown in Figure 5A, this server 500 includes:
Receiving unit 510, for receiving the resource access request of client transmission, described resource access request includes unifying URLs URL;
Allocation unit 520, for when described resource access request does not include entity indicia ETag, being that described client is divided Adapted family unique mark, described user's unique mark is used for described server and identifies described client;
Response unit 530, includes described user uniquely identified ETag for generating, by described ETag and described URL Corresponding resource is back to described client, so that when described client accesses described server again, sends described in carrying The resource access request of ETag gives described server.
Using above-mentioned server, this server, can be according to this after the resource access request receiving client transmission User's unique mark in the ETag of resource access request is identified to described client, the cache file of ETag and browser It is stored together, in order to improve the loading speed of resource, the cache file of browser generally will not be emptied by user, therefore, In the case that Cookie is deleted, server remains able to client is identified, and solves prior art in Cookie quilt Just the technical problem of user's identification is cannot be carried out after deletion.
Alternatively, as shown in Figure 5 B, this server 500 also includes:First determining unit 540, for visiting in described resource When asking that request includes ETag, determine in described ETag, whether to carry user's unique mark;Described allocation unit 520 is used for, When not carrying user's unique mark in described ETag, it is described client distributing user unique mark;Described response unit 530 is used In generation includes described user uniquely identified ETag, and described ETag is sent to described client to replace described client Hold current ETag.That is, server 500 is except dividing for client in the case of not including ETag in resource access request Adapted family unique mark, can also include ETag in resource access request but this ETag does not carry user's uniquely identified situation Under, it is client distributing user unique mark it is ensured that the follow-up resource access request sending of client all carries described user Unique mark.
Alternatively, as shown in Figure 5 B, described server also includes:Recognition unit 550, for carrying institute in described ETag When stating user's unique mark, described client is identified according to described user's unique mark.
Alternatively, as shown in Figure 5 B, the corresponding resource of described URL is picture resource, and described server 500 also includes:Spell Order unit 560, for the summary info of described user's unique mark and described picture resource is spliced into ETag, by described ETag It is back to described client.
Alternatively, the corresponding resource of described URL is picture resource, and described ETag also includes the summary letter of described picture resource Breath, as shown in Figure 5 B, described server 500 also includes:Second determining unit 570, for determining corresponding institute in described server The summary info of picture resource stating URL is inconsistent with the summary info in described ETag.Then described concatenation unit 560 is also used In summary info and described user's unique mark of the picture resource after change are spliced into new ETag;Described response unit 530 are used for, and the picture resource after described new ETag and change is back to described client.
Alternatively, described second determining unit 570 is additionally operable to, and determines the picture money of corresponding described URL in described server The summary info in source is consistent with the summary info in described ETag, and described response unit 530 is used for, and returns to described client 304 conditional codes, described 304 conditional codes are used for indicating that described client obtains described picture resource from local cache.
So, on the premise of guaranteeing that this server can be identified to client according to ETag, this server also may be used With based on ETag it can be avoided that client repeated downloads picture.
What deserves to be explained is, the above dividing elements to server 500, only a kind of division of logic function, actual realization When can have other dividing mode.And, the physics realization of above-mentioned each functional unit has been likely to multiple implementations, example If above-mentioned concatenation unit 560 can be specifically a central processing unit or ASIC (Application Specific Integrated Circuit, special IC).
In addition, affiliated it will be apparent to those skilled in the art ground recognize, for convenience and simplicity of description, foregoing description The each unit of server specific work process, may be referred to the corresponding process in preceding method embodiment, no longer superfluous herein State.
It should be understood that disclosed apparatus and method in embodiment provided herein, can pass through other Mode is realized.For example, can be integrated in a processing unit in each functional unit in each embodiment of the present invention it is also possible to It is that unit is individually physically present it is also possible to two or more units are integrated in a unit.Above-mentioned integrated list Unit both can be to be realized in the form of hardware, it would however also be possible to employ the form that hardware adds SFU software functional unit is realized.
The above-mentioned integrated unit realized in the form of SFU software functional unit, can be stored in an embodied on computer readable and deposit In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions with so that a computer Equipment (can be personal computer, server, or network equipment etc.) executes the portion of each embodiment methods described of the present invention Step by step.And aforesaid storage medium includes:(Random Access Memory, random access memory is deposited for USB flash disk, portable hard drive, RAM Reservoir), magnetic disc or CD etc. are various can be with the medium of data storage.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, and any Those familiar with the art the invention discloses technical scope in, the change or replacement that can readily occur in, all answer It is included within the scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.

Claims (10)

1. a kind of method of user's identification is it is characterised in that include:
Server receives the resource access request that client sends, and described resource access request includes uniform resource position mark URL;
If described resource access request does not include entity indicia ETag, it is described client distributing user unique mark, described use Family unique mark is used for described server and identifies described client;
Generate and include described user uniquely identified ETag, described ETag and the corresponding resource of described URL are back to described Client, so that when described client accesses described server again, sends the resource access request carrying described ETag to institute State server.
2. method according to claim 1 is it is characterised in that methods described also includes:
If described resource access request includes ETag, determine in described ETag, whether to carry user's unique mark;
If not carrying user's unique mark in described ETag, it is described client distributing user unique mark;
Generate and include described user uniquely identified ETag, and described ETag is sent to described client to replace described client Hold current ETag.
3. method according to claim 2 is it is characterised in that methods described also includes:
If carrying described user's unique mark in described ETag, described client is identified according to described user's unique mark.
4. method according to claim 1 and 2 is it is characterised in that the corresponding resource of described URL is picture resource, described Generate and include described user uniquely identified ETag, including:
The summary info of described user's unique mark and described picture resource is spliced into described ETag.
5. method according to claim 3 it is characterised in that the corresponding resource of described URL be picture resource, described ETag Also include the summary info of described picture resource, methods described also includes:
Determine that the summary info of picture resource of corresponding described URL in described server is differed with the summary info in described ETag Cause;
The summary info of the picture resource after change is spliced into new ETag with described user's unique mark;
Picture resource after described new ETag and change is back to described client.
6. method according to claim 3 it is characterised in that the corresponding resource of described URL be picture resource, described ETag Also include the summary info of described picture resource, methods described also includes:
Determine the summary info one in the summary info of picture resource and described ETag of corresponding described URL in described server Cause;
Return 304 conditional codes to described client, described 304 conditional codes are used for indicating that described client obtains from local cache Described picture resource.
7. a kind of server is it is characterised in that include:
Receiving unit, for receiving the resource access request of client transmission, it is fixed that described resource access request includes unified resource Position symbol URL;
Allocation unit, for when described resource access request does not include entity indicia ETag, being described client distributing user Unique mark, described user's unique mark is used for described server and identifies described client;
Response unit, generates and includes described user uniquely identified ETag, described ETag and the corresponding resource of described URL are returned It is back to described client, so that when described client accesses described server again, send the resource access carrying described ETag Ask to described server.
8. server according to claim 7 is it is characterised in that described server also includes:
First determining unit, for when described resource access request includes ETag, determining in described ETag whether carry use Family unique mark;
Described allocation unit is used for, when described ETag does not carry user's unique mark, be described client distributing user only One mark;
Described response unit is used for, and generates and includes described user uniquely identified ETag, and described ETag is sent to described visitor The family end ETag current to replace described client.
9. server according to claim 8 is it is characterised in that described server also includes:
Recognition unit, during for carrying described user's unique mark in described ETag, identifies according to described user's unique mark Described client.
10. the server according to claim 7 or 8 it is characterised in that the corresponding resource of described URL be picture resource, institute State server also to include:
Concatenation unit, for being spliced into ETag by the summary info of described user's unique mark and described picture resource.
CN201610967523.2A 2016-10-31 2016-10-31 User knows method for distinguishing and server Active CN106446640B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610967523.2A CN106446640B (en) 2016-10-31 2016-10-31 User knows method for distinguishing and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610967523.2A CN106446640B (en) 2016-10-31 2016-10-31 User knows method for distinguishing and server

Publications (2)

Publication Number Publication Date
CN106446640A true CN106446640A (en) 2017-02-22
CN106446640B CN106446640B (en) 2019-11-08

Family

ID=58180483

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610967523.2A Active CN106446640B (en) 2016-10-31 2016-10-31 User knows method for distinguishing and server

Country Status (1)

Country Link
CN (1) CN106446640B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109344344A (en) * 2018-09-03 2019-02-15 平安普惠企业管理有限公司 Identification method, server and the computer readable storage medium of webpage client
CN109688178A (en) * 2017-10-19 2019-04-26 阿里巴巴集团控股有限公司 Recommended method, device and equipment
CN110460685A (en) * 2019-07-10 2019-11-15 苏宁云计算有限公司 User's unique identification processing method, device, computer equipment and storage medium
CN114650272A (en) * 2020-12-17 2022-06-21 上海嗨普智能信息科技股份有限公司 User unique identifier processing method, device, storage medium and computer device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1819518A (en) * 2006-02-20 2006-08-16 北京凯威点告网络技术有限公司 Method for discriminating user identity in information distributing system
CN102638581A (en) * 2012-03-31 2012-08-15 奇智软件(北京)有限公司 Cookie information storage method and cookie information storage system
CN104320679A (en) * 2014-10-11 2015-01-28 中兴通讯股份有限公司 Method for obtaining user information based on HLS protocol and server
CN104468807A (en) * 2014-12-12 2015-03-25 北京小渔无限信息技术有限公司 Processing method, cloud end device, local devices and system for webpage cache
CN105450770A (en) * 2015-12-15 2016-03-30 精硕世纪科技(北京)有限公司 Cookie stable correction method and system
US9426200B2 (en) * 2013-03-12 2016-08-23 Sap Se Updating dynamic content in cached resources

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1819518A (en) * 2006-02-20 2006-08-16 北京凯威点告网络技术有限公司 Method for discriminating user identity in information distributing system
CN102638581A (en) * 2012-03-31 2012-08-15 奇智软件(北京)有限公司 Cookie information storage method and cookie information storage system
US9426200B2 (en) * 2013-03-12 2016-08-23 Sap Se Updating dynamic content in cached resources
CN104320679A (en) * 2014-10-11 2015-01-28 中兴通讯股份有限公司 Method for obtaining user information based on HLS protocol and server
CN104468807A (en) * 2014-12-12 2015-03-25 北京小渔无限信息技术有限公司 Processing method, cloud end device, local devices and system for webpage cache
CN105450770A (en) * 2015-12-15 2016-03-30 精硕世纪科技(北京)有限公司 Cookie stable correction method and system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109688178A (en) * 2017-10-19 2019-04-26 阿里巴巴集团控股有限公司 Recommended method, device and equipment
CN109688178B (en) * 2017-10-19 2022-03-11 阿里巴巴集团控股有限公司 Recommendation method, device and equipment
CN109344344A (en) * 2018-09-03 2019-02-15 平安普惠企业管理有限公司 Identification method, server and the computer readable storage medium of webpage client
CN110460685A (en) * 2019-07-10 2019-11-15 苏宁云计算有限公司 User's unique identification processing method, device, computer equipment and storage medium
CN114650272A (en) * 2020-12-17 2022-06-21 上海嗨普智能信息科技股份有限公司 User unique identifier processing method, device, storage medium and computer device

Also Published As

Publication number Publication date
CN106446640B (en) 2019-11-08

Similar Documents

Publication Publication Date Title
CN106528432B (en) The construction method and device of test scene data bury a test method
US9659105B2 (en) Methods and apparatus to track web browsing sessions
CN106105160B (en) Prefetch the application data for disconnecting the period
US8788711B2 (en) Redacting content and inserting hypertext transfer protocol (HTTP) error codes in place thereof
CN108132814A (en) Page loading method, device, computer equipment and the storage medium of application program
CN103944944B (en) Method, electronic equipment and the system of sharing web page link
US9332065B2 (en) Methods and apparatus for identifying browser use on a mobile device
CN104468592B (en) Login method and login system
CN104035753A (en) Double-WebView customized page display method and system
CN104572843B (en) The loading method and device of a kind of page
CN106446640A (en) User identification method and server
CN105160027B (en) Advertisement data processing method and device
CN103150513A (en) Method and device for intercepting embedded information in application program
CN104731869B (en) The page shows method and device
CN109829077A (en) A kind of page display method, device and equipment
CN108429785A (en) A kind of generation method, reptile recognition methods and the device of reptile identification encryption string
CN108023867A (en) Method, gateway server and the filtering server of mobile terminal web advertisement filtering
CN106446075A (en) Page request processing method and apparatus
US10193988B2 (en) Setting a first-party user ID cookie on a web servers domain
EP3528474A1 (en) Webpage advertisement anti-shielding method, content distribution network and client
CN108196902A (en) For showing the method and apparatus for advertisement of spreading its tail
CN106156291A (en) The caching method of static resource and system thereof based on Localstroage
CN110020297A (en) A kind of loading method of web page contents, apparatus and system
CN104253835A (en) User behavior data acquisition method and system
CN113055348B (en) Cross-platform data request method and device and electronic equipment

Legal Events

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