I need to find a way to retrieve all of the user sessions from within a web application. I have tried this solution: Get a list of all active sessions in ASP.NET
And it worked fine for .net 4.5 and above but not for 4.0 and below.
I don't want to manage my sessions by creating a static list of sessions that will be populated from Global.asax (session_start and session_end). I just need to find a way to investigate the current web application and retrieve all of the users active sessions (for .net versions 2.0 and above)
Is it possible?