CN102761438A - Method, server and system for counting on-line user population of website - Google Patents

Method, server and system for counting on-line user population of website Download PDF

Info

Publication number
CN102761438A
CN102761438A CN2012101566262A CN201210156626A CN102761438A CN 102761438 A CN102761438 A CN 102761438A CN 2012101566262 A CN2012101566262 A CN 2012101566262A CN 201210156626 A CN201210156626 A CN 201210156626A CN 102761438 A CN102761438 A CN 102761438A
Authority
CN
China
Prior art keywords
user
time
request
website
automatic
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.)
Pending
Application number
CN2012101566262A
Other languages
Chinese (zh)
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.)
JIANGSU JINMA FAME INFORMATION TECHNOLOGY CO LTD
Original Assignee
JIANGSU JINMA FAME INFORMATION TECHNOLOGY CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by JIANGSU JINMA FAME INFORMATION TECHNOLOGY CO LTD filed Critical JIANGSU JINMA FAME INFORMATION TECHNOLOGY CO LTD
Priority to CN2012101566262A priority Critical patent/CN102761438A/en
Publication of CN102761438A publication Critical patent/CN102761438A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to a method, a server and a system for counting on-line user population of a website. The method comprises that a service end receives the request automatically transmitted by a client end webpage at fixed time, updates the corresponding last automatic request time of the user, and judges that the user is offline when the difference between the last automatic request time of the user and the current time is more than a certain value; and the service end receives the request actively sent by the user, updates the corresponding last active request time of the user, and judges that the user is offline and logs off the user when the difference between the last active request time of the user and the current time is more than a certain value. According to the invention, the use population of the client end can be precisely and real-time counted, and the data basically identical to the actual use population of the client end can be provided.

Description

A kind of method of website statistics online user's number, server and system
Technical field
The present invention relates to a kind of network communications technology, especially a kind of method of website statistics online user's number, server and system.
Background technology
In recent years, office softwares such as Web version coordination management system are more and more important in the enterprise production flow process, transferred in the integrated interchange module of office software and the interchange of enterprises more.
For enterprises exchanged, promptness was very important, and in general web station system, whether the user is online, and whether the online user does not have activity to be difficult to make judgement for a long time.Will make internal communication not plan a successor the speed of the enterprise production that slows down like this.
After user's login, promptly directly close browser if the user is illegally rolled off the production line in the prior art, perhaps computer breaks down, and default user is still understood by system in long time online.When user's logging on client, and user itself is when using client, and it is online that system also still can judges.This can make other client users that need exchange with the user judge and make a fault, thereby delays the progress of thing.
Summary of the invention
The technical problem that the present invention will solve is: propose a kind of statistics client user's that can be accurate and real-time method, this method can provide the essentially identical data with the actual user of client; Simultaneously for realizing that this method provides a kind of server and system.
The technical scheme that the present invention adopted is: a kind of method of website statistics online user's number comprises
Service end is accepted the request that the subscription client webpage regularly sends automatically, to corresponding last time of this user automatic request time upgrade, when user's last time, automatic request time and current time difference were greater than certain value, be judged as user's off-line;
Or service end accepts the request that the user initiatively sends, this user was upgraded corresponding active request time last time, and when active request time user's last time and current time difference during, judges off-line greater than certain value, and with this user log off.
When being the request of the automatic submission of client terminal web page: this request of submitting to automatically of service end response, service end and the corresponding automatic request final time of this user are upgraded; And add up this last request time and difference of current time automatically, if exceed the certain value of setting, then with this user deletion from online user's table.
When the request initiatively submitted to for the user: the request that this user of service end response submits to, service end and the corresponding active request final time of this user are upgraded; And the difference of adding up this last active request time and current time, if exceed the certain value of setting, then with this user deletion from online user's table.
Method of the present invention, at first the user logins this website; The request that the website service termination receives this user to login this website is created and storage and corresponding automatic request final time of this user and active request final time at server, and the current time is set to its initial value.
The certain value of setting of the present invention is the autonomous time interval that is provided with of portal management person; Be used to wherein to judge that automatic request time can be set to 1 second, 5 seconds, 10 seconds constant durations numerical value smaller or equal to 5S; Be used to wherein to judge that the active request time can be set to 10 minutes, 20 minutes, 30 minutes constant durations more than or equal to 10 minutes numerical value; The blanking time of described automatic request is less than the time interval that is used to judge that automatic request time is provided with.
Client of the present invention is a web browser; Said client and server communicates via HTTP.
Simultaneously; The present invention also provides a kind of server of website statistics online user's number; Comprise user information store and final time updating device, described user information store is used to store ID automatic request final time and the active request final time corresponding with this user; Described final time updating device is used to receive the request from client, and the match user sign; And according to whether having the match user sign to determine to Add User information or update user information.
Moreover; The present invention provides a kind of system of website statistics online user's number again, comprises one or more client, initiates the request that connects with server; Receiving also storage ID, has been automatically or the Initiative Inventory Management last-minute plea time according to request.
The invention has the beneficial effects as follows: the online number of statistics client that can be accurate and real-time has solved in the prior art, has connected based on stateless like the defective aspect the online demographics in the network application of HTTP.
Description of drawings
Below in conjunction with accompanying drawing and embodiment the present invention is further specified.
Fig. 1 is the sketch map that the present invention adds up the online number in website;
Fig. 2 is the sketch map that the present invention adds up the Website server that uses in the web station system of website online user's number;
Fig. 3 is the flow chart that the present invention is used to set up the method that can add up website online user system.
Embodiment
Combine accompanying drawing and preferred embodiment that the present invention is done further detailed explanation now.These accompanying drawings are the sketch map of simplification, basic structure of the present invention only is described in a schematic way, so it only show the formation relevant with the present invention.
The system of a kind of website statistics online user's number as shown in Figure 1; Comprise a plurality of clients and Website server; Website server comprises user information store and final time updating device, and user information store is used to store ID automatic request final time and the active request final time corresponding with this user; The final time updating device is used to receive the request from client, and the match user sign; And according to whether having the match user sign to determine to Add User information or update user information.
As shown in Figure 2; Service end is accepted the request that the subscription client webpage regularly sends automatically; To corresponding last time of this user automatic request time upgrade, when user's last time, automatic request time and current time difference were greater than certain value, be judged as user's off-line;
Or service end accepts the request that the user initiatively sends, this user was upgraded corresponding active request time last time, and when active request time user's last time and current time difference during, judges off-line greater than certain value, and with this user log off.
When being the request of the automatic submission of client terminal web page: this request of submitting to automatically of service end response, service end and the corresponding automatic request final time of this user are upgraded; And add up this last request time and difference of current time automatically, if exceed the certain value of setting, then with this user deletion from online user's table.
When the request initiatively submitted to for the user: the request that this user of service end response submits to, service end and the corresponding active request final time of this user are upgraded; And the difference of adding up this last active request time and current time, if exceed the certain value of setting, then with this user deletion from online user's table.
Shown in Figure 3 is method flow diagram of the present invention, and at first the user logins this website; The request that the website service termination receives this user to login this website is created and storage and corresponding automatic request final time of this user and active request final time at server, and the current time is set to its initial value.
The certain value of setting of the present invention is the autonomous time interval that is provided with of portal management person; Be used to wherein to judge that automatic request time can be set to 1 second, 5 seconds, 10 seconds constant durations numerical value smaller or equal to 5S; Be used to wherein to judge that the active request time can be set to 10 minutes, 20 minutes, 30 minutes constant durations more than or equal to 10 minutes numerical value; The blanking time of described automatic request is less than the time interval that is used to judge that automatic request time is provided with.
Client of the present invention is a web browser; Said client and server communicates via HTTP.
What describe in the above specification is embodiment of the present invention; Various not illustrating constitutes restriction to flesh and blood of the present invention; Under the those of ordinary skill of technical field after having read specification can to before described embodiment make an amendment or be out of shape, and do not deviate from essence of an invention and scope.

Claims (8)

1. the method for a website statistics online user number is characterized in that: comprise
Service end is accepted the request that the subscription client webpage regularly sends automatically, to corresponding last time of this user automatic request time upgrade, when user's last time, automatic request time and current time difference were greater than certain value, be judged as user's off-line;
Or service end accepts the request that the user initiatively sends, this user was upgraded corresponding active request time last time, and when active request time user's last time and current time difference during, judges off-line greater than certain value, and with this user log off.
2. the method for a kind of website statistics online user's number as claimed in claim 1; It is characterized in that: when being the request of the automatic submission of client terminal web page: this request of submission automatically of service end response, service end and the corresponding automatic request final time of this user are upgraded; And add up this last request time and difference of current time automatically, if exceed the certain value of setting, then with this user deletion from online user's table.
3. the method for a kind of website statistics online user's number as claimed in claim 1; It is characterized in that: when the request initiatively submitted to for the user: the request that this user of service end response submits to, service end and the corresponding active request final time of this user are upgraded; And the difference of adding up this last active request time and current time, if exceed the certain value of setting, then with this user deletion from online user's table.
4. the method for a kind of website statistics online user's number as claimed in claim 1 is characterized in that: described method comprises that also the user logins this website; The request that the website service termination receives this user to login this website is created and storage and corresponding automatic request final time of this user and active request final time at server, and the current time is set to its initial value.
5. the method for a kind of website statistics online user's number as claimed in claim 1 is characterized in that: the certain value of described setting is the autonomous time interval that is provided with of portal management person; Be used to wherein judge that automatic request time is set to the numerical value of the time interval smaller or equal to 5S; Be used to wherein judge that the active request time is set to interval greater than the numerical value that equals 10 minutes; The blanking time of described automatic request is less than the time interval that is used to judge that automatic request time is provided with.
6. like the method for claim 1,2 or 3 described a kind of website statistics online user's numbers, it is characterized in that: described client is a web browser; Said client and server communicates via HTTP.
7. the server of a website statistics online user number; It is characterized in that: comprise user information store and final time updating device, described user information store is used to store ID automatic request final time and the active request final time corresponding with this user; Described final time updating device is used to receive the request from client, and the match user sign; And based on whether having the match user sign to determine to Add User information or update user information.
8. the system of a website statistics online user number is characterized in that: comprising one or more client, initiate the request that connects with server, receive also storage ID, has been automatically or the Initiative Inventory Management last-minute plea time according to request.
CN2012101566262A 2012-05-18 2012-05-18 Method, server and system for counting on-line user population of website Pending CN102761438A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012101566262A CN102761438A (en) 2012-05-18 2012-05-18 Method, server and system for counting on-line user population of website

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012101566262A CN102761438A (en) 2012-05-18 2012-05-18 Method, server and system for counting on-line user population of website

Publications (1)

Publication Number Publication Date
CN102761438A true CN102761438A (en) 2012-10-31

Family

ID=47055764

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012101566262A Pending CN102761438A (en) 2012-05-18 2012-05-18 Method, server and system for counting on-line user population of website

Country Status (1)

Country Link
CN (1) CN102761438A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103684911A (en) * 2013-12-05 2014-03-26 北京奇虎科技有限公司 Website online user statistical method and device
CN105721227A (en) * 2016-04-14 2016-06-29 武汉斗鱼网络科技有限公司 Method and system for carrying out statistics to online durations of user and state server
CN106911749A (en) * 2015-12-23 2017-06-30 北京奇虎科技有限公司 The method and apparatus for notifying user's going on line or off line
CN106911748A (en) * 2015-12-23 2017-06-30 北京奇虎科技有限公司 The method and apparatus of on-line user amount statistic
CN106911528A (en) * 2015-12-23 2017-06-30 北京奇虎科技有限公司 The method and apparatus of on-line user amount statistic
CN111339495A (en) * 2020-02-18 2020-06-26 北京字节跳动网络技术有限公司 Method and device for counting number of people online in live broadcast room, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030182365A1 (en) * 2002-03-20 2003-09-25 Fujitsu Limited Site monitoring method
CN1540544A (en) * 2003-04-22 2004-10-27 联想(北京)有限公司 Method for tracking and controlling users' online states and information
CN101394307A (en) * 2008-11-07 2009-03-25 阿里巴巴集团控股有限公司 Method, apparatus and system for on-line user amount statistic
CN101729571A (en) * 2009-12-28 2010-06-09 广州游家信息技术有限公司 Method, server and system for counting network on-line user number

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030182365A1 (en) * 2002-03-20 2003-09-25 Fujitsu Limited Site monitoring method
CN1540544A (en) * 2003-04-22 2004-10-27 联想(北京)有限公司 Method for tracking and controlling users' online states and information
CN101394307A (en) * 2008-11-07 2009-03-25 阿里巴巴集团控股有限公司 Method, apparatus and system for on-line user amount statistic
CN101729571A (en) * 2009-12-28 2010-06-09 广州游家信息技术有限公司 Method, server and system for counting network on-line user number

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103684911A (en) * 2013-12-05 2014-03-26 北京奇虎科技有限公司 Website online user statistical method and device
WO2015081715A1 (en) * 2013-12-05 2015-06-11 北京奇虎科技有限公司 Method and apparatus for counting online users on website
CN106911749A (en) * 2015-12-23 2017-06-30 北京奇虎科技有限公司 The method and apparatus for notifying user's going on line or off line
CN106911748A (en) * 2015-12-23 2017-06-30 北京奇虎科技有限公司 The method and apparatus of on-line user amount statistic
CN106911528A (en) * 2015-12-23 2017-06-30 北京奇虎科技有限公司 The method and apparatus of on-line user amount statistic
CN106911749B (en) * 2015-12-23 2020-06-26 北京奇虎科技有限公司 Method and device for notifying user of online and offline
CN105721227A (en) * 2016-04-14 2016-06-29 武汉斗鱼网络科技有限公司 Method and system for carrying out statistics to online durations of user and state server
CN105721227B (en) * 2016-04-14 2019-03-05 武汉斗鱼网络科技有限公司 A kind of method of counting user online hours and state server and system
CN111339495A (en) * 2020-02-18 2020-06-26 北京字节跳动网络技术有限公司 Method and device for counting number of people online in live broadcast room, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN102761438A (en) Method, server and system for counting on-line user population of website
CN104580074B (en) The login method of client application and its corresponding server
US20160307131A1 (en) Method, apparatus, and system for controlling delivery task in social networking platform
CN101656617B (en) Method for promoting advertisement, device and system thereof
CN107809489A (en) A kind of message push system based on MQTT agreements
EP3028437B1 (en) Messaging api over http protocol to establish context for data exchange
CN103095743A (en) Handling method and system of grey release
CN101557427A (en) Method for providing diffluent information and realizing the diffluence of clients, system and server thereof
CN101854399A (en) Method and device for aggregating network data
CN105592118B (en) Synchronous user applies method, system and the server-side of data
CN107800746B (en) Message pushing method and device
US20150039675A1 (en) Messaging over http protocol for data exchange
WO2021073002A1 (en) Terminal page access method and system
CN104142975A (en) Microblog information promotion method, device and system
CN114567600B (en) Traffic management method and related equipment
CN111767558A (en) Data access monitoring method, device and system
CN106209731B (en) Session service processing method and device
CN101656685A (en) Method for viewing user related information provided by on-line service
CN109547481A (en) A kind of website user's conversation managing method based on Redis ordered set and token mode
CN111773731B (en) Game timing method and device
CN106161490A (en) A kind of user's online behavior state update method, Apparatus and system
CN102150151A (en) Asynchronous queued messaging for Web applications
CN104079472A (en) Method for mobile game products to achieve real-time social contact functions
CN106657292A (en) Data processing method and device
CN110213155A (en) Communication processing method, device and relevant device, storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C05 Deemed withdrawal (patent law before 1993)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20121031