John K
John K

Reputation: 28869

From ASP.NET can I access all Sessions?

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?

Upvotes: 1

Views: 494

Answers (1)

Dean Harding
Dean Harding

Reputation: 72658

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.

Upvotes: 1

Related Questions