Hi,
how to get list of all active ASP.NET Sessionsid
Hi,
how to get list of all active ASP.NET Sessionsid
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Naimish MakwanaPosted Sep 3, 2024, 12:53 PM
To get a list of all active ASP.NET Session IDs, you can use a combination of code in your
Global.asaxfile and some reflection. Here’s a basic example:Global.asax:This approach works for InProc session state mode. If you’re using StateServer or SQLServer modes, you’ll need a different approach as
Session_Endwon’t be triggered12.Thanks