Click here to Skip to main content
15,921,028 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
i have used the ASP.NET with C# . i want to check how many client send request to the web server . i have deploy the web page in IIS server then when i have accessed this site from the another computer using IP address of the IIS web server . how to count no. clients connected to the server?


Thanks in advence
Posted
Updated 28-Feb-12 19:31pm
v2

Check if this works, it's in VB.NET but should not be a big problem getting it to C#.

http://www.motobit.com/tips/detpg_wmi-iis-performance/[^]

also you could leverage the Global.asax events to count the number of session started, even if I'm not sure that this can be a reliable method.

Check this for help with Global.asax events

http://www.techrepublic.com/article/working-with-the-aspnet-globalasax-file/5771721[^]


Cheers
 
Share this answer
 
 
Share this answer
 
Comments
vrushali katkade 7-Mar-12 5:10am    
when i have use the session_end event to decrease the LiveSessionsCount then it will decrease after the session timeout but i want to decrease the count after the client close the browser
in global asax file on Session start event store the value in 

application variable 
                       if(Application["Count"]!=null)
{
       int count=Convert.ToInt32(Application["Count"]);
       count=count+1;
Application["Count"]=count;

}
else

{
Application["Count"]=1;
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900