Counting ASP.NET sessions in a web farm

Y

Yash Ganthe

Hi,

We have a ASP .NET application which will be deployed in a web farm.
We would like to find the total number of sessions that have been
established. If we create a counter in global.asax.cs, it will be able
to count only within aspnet_wp process. In a web farm, multiple nodes
will have IIS on multiple machines.
If we use SQL server-based session management, can we get the total
number of active session by querying the Session DB?
If we later decide to use session state server to store the sessions,
can we get the number of active sessions?

Thanks,
Yash
 
C

Cubaman

Hi,

We have a ASP .NET application which will be deployed in a web farm.
We would like to find the total number of sessions that have been
established. If we create a counter in global.asax.cs, it will be able
to count only within aspnet_wp process. In a web farm, multiple nodes
will have IIS on multiple machines.
If we use SQL server-based session management, can we get the total
number of active session by querying the Session DB?
If we later decide to use session state server to store the sessions,
can we get the number of active sessions?

Thanks,
Yash

Hello:
Yes, if you use Sql DDBB you can query it for session values.
Best regards.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,154
Members
46,702
Latest member
LukasConde

Latest Threads

Top