I want to know no. of active users on my website with sessionstate set as sqlserver.
And what if a person closes his browser then how to maintain the user count?
Any help appreciated.
Thanks in advance
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you use SQL Server as session state, than the dateabase ASPState is used, and it has following tables.
and several stored procedures and jobs. you can explore it to understand.
so if you have only single application, than it is just a simple query.
In case if it is configured with multiple application using
Application Namein connection string, than you need sessionid in table ASPStateTempSessions, so