Click here to Skip to main content
15,899,025 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to count number of user currently logged in in my website,
(how many user online currently......)
when session for any user closed then count should be decreased......

can any one give me a proper solution.....

Help me......

THNX
Posted

1 solution

There are many ways to count number of active visitors on your ASP.NET website.
They differ in technique and accuracy. But this is the simpliest one by creating a Global.asax file. To do this;

Here is the link that will tell you how you can accomplish it.

How to show online visitors for ASP.Net[^]

Good luck,
OI
 
Share this answer
 
Comments
PKriyshnA 20-Jan-12 22:40pm    
thats not work properly

when application start then coun increase....
not work with session.....

post another solution which help with better accuracy

thnx

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