The text of this article is not in this database — only its details are. Read it on the old site: Node.JS in Action: Implement Visitor Counter in Node.js
15 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.

vinod palnePosted Feb 27, 2018, 10:45 PM
Http://debugonweb.com/2018/02/28/how-to-show-number-of-visits-in-node-js/
Jaganathan BantheswaranPosted Nov 6, 2014, 5:11 AM
Is the functionality of example Visitor Counter or Request Counter??
Sourav KayalPosted Apr 22, 2014, 5:32 AM
favicon icon which comes with tab in browser
AshishPosted Apr 22, 2014, 4:32 AM
what is favicon icon
AshishPosted Apr 22, 2014, 4:32 AM
@sourav , nice and thanks for leaving this on me ;) .
Sourav KayalPosted Apr 21, 2014, 9:34 AM
Dear ashis, very good question. Actually we are increment counter value in every HTTP response. So, when we are calling web server it's one response and when server is loading Favicon icon in browser it's another response. so the counter is increment by 2. I am leaving it as your task to make it 1. haha :)
AshishPosted Apr 21, 2014, 8:47 AM
@sourav i ran the visitor counter code , its working well.But everytime it increments visit count by 2.
Lakshmanan Sethu SankaranarayanPosted Apr 14, 2014, 10:41 PM
@Sourav thanks.
Sourav KayalPosted Apr 14, 2014, 9:12 PM
@Priti , First of all node.js is individual platform to develop application, so there is no direct relation with dot net. Both are different technology to develop application. Both have pros and cons. Please don't try to find relation between them, So , use node.js to develop web server individually, without using any other technology just using by JavaScript. Hope now it's little clear. If not please comment.
Priti KumariPosted Apr 14, 2014, 2:35 AM
Sourav Kayal@ Sir please tell me real time example how to use node js server in dot net and how its useful for dot net application........i learn lot about node js server but i am not geting actual implementaion of Node js server.Please help me?
Sourav KayalPosted Apr 6, 2014, 9:43 PM
Dear lakshmanan, req object is a parameter of server creation callback function, When we make any HTTP request to node.js server, the request property reflects in req object. By analyzing req object we can gate many information about current request.
Lakshmanan Sethu SankaranarayanPosted Apr 6, 2014, 1:39 PM
but still whats the req object ?
Lakshmanan Sethu SankaranarayanPosted Apr 6, 2014, 1:38 PM
Thats the power of node.js for you :)