Click here to Skip to main content
15,917,795 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Dear all users,

I am beginner so pls help me about the topic that how many users are logged in my asp.net website?
Posted
Comments
Thanks7872 18-Nov-13 6:37am    
Try something by searching on Google.

Your question is not clear.I hope you are tring for these things

Maintain a status column in SQL login table.Set default status =o and update it into 1 when user login and get count of status =1.You will get total no of logged in user

likewise update it into 0 when logout.


OR if you need count of visitor of website
Click here[^]
 
Share this answer
 
v2
Comments
Eng. Ashish Srivastava 18-Nov-13 7:00am    
but if user close their web browser without logged out.
how will I maintain our database?
Tom Marvolo Riddle 18-Nov-13 7:07am    
Try this link:
http://www.codeproject.com/Tips/566217/Session-killing-logout-in-server-when-browser-is-c

if it not helps you,try force logout on browser close in asp.net in google.you will find lot of answer for this
You may refer this link[^] which shows different approaches to do it

Hope this helps
 
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