Hello all
I want to make a Total visited user counter in my website it contain total visited user also currently visited user ,when a user visit my site it will add in total visited counter.please send me solution of this.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Manas MohapatraRank #182 · 13.2K reputationPosted Aug 13, 2015, 2:17 AM EDT
Susanta RoutRank #1,557 · 1K reputationPosted Aug 13, 2015, 2:20 AM EDT
Manish Sharma33 reputationPosted Aug 13, 2015, 2:26 AM EDT
Rajeesh MenothRank #118 · 18.4K reputationPosted Aug 13, 2015, 2:28 AM EDT
Manish Sharma33 reputationPosted Aug 13, 2015, 2:54 AM EDT
Rajeesh MenothRank #118 · 18.4K reputationPosted Aug 13, 2015, 2:59 AM EDT
Sumit JoshiRank #1,252 · 1.4K reputationPosted Aug 13, 2015, 3:22 AM EDT
----------------------------------------------------------------------------
public static int totalVisitors,onlineCounter = 0;
{
Application.Lock();
onlineCounter++;
totalVisitors++;
Application.UnLock();
}
void Session_End(object sender, EventArgs e)
{
Application.Lock();
onlineCounter--;
Application.UnLock();
}