I use VS2010, C# to develop ASP.NET web app, I create some sessions in my app, is there any way that I can know about sessions of all users? I think this should be possible since sessions are created by server code, I want to know session states of all users, for instance I want to know how many online users I have at each moment (by looking at session[“userid”]), is there any way around that?
thanks
But you can implement it using Application object and other methods.
Ref: Getting number of active sessions (online users counter) with ASP.NET
Handle the Application events in global.asax file:
Other Implementation methods reference:
Getting online users
ASP.NET Membership – Show list of users online