views:

63

answers:

1

I want to enumerate all the Sessions. Are they available, or do I have to keep references to them manually from Session_Start in Global.asax?

+1  A: 

You can create your own session provider which gives you access to all the sessions via some special command. The built-in session handlers don't, however.

I wonder why you want to do this, though? It seems like an unusual requirement, and a possible security issue as well.

Dean Harding
Makes we wonder if I could create a custom session provider that proxies calls through to the built-in session handlers, but provides me an "in the middle" handle to all sessions. I thought about security too but really as long as I'm not manipulating the other sessions then there's likely no cause for concern - I'm just looking at them.
John K