In ASP.NET 3.5, is it possible to iterate through all of the session objects (not the objects within the current session, but all sessions across all users) so that their collection contents can be manipulated (i.e. one collection item removed from all active sessions)?
And if so, does this work with ASP.NET State Service (accessing all sessions created by all web servers that are sharing the same state service, all from one web server)?
I think the only answer I’ve come up with is: If you’re working with a single box, you can put the sessions into a collection that is stored in the Application collection, and remove each session when each session ends. But for making global session updates to a shared state server, credit goes to tvanfosson’s comment under one of the other answers: SQL Server is the only reasonably viable option, outside of using a third party or alternate state server that enables this feature via network sockets.