Session Start and End ASP.NET is there a way to capture a value immediately before it is cleared?

316 Views Asked by At

A fairly simple question really.

I am trying to hold a series of values in a Cached object, which is populated via a range of session objects.

It isn't, but we can kind of think of it as like a chat system.

There are multiple users, signed in on multiple machines, therefore multiple session states should exist.

In order to give a multi-user view, the master collection is held in the cache (so it can be viewed across the multiple sessions)

When a new machine starts a new session, the cache object is updated, but when a session ends, I need to be able to remove an item by Key from the Cache, but the key will be lost AFTER session ends!

So... is there any way to grab a value immediately before a session ends?

0

There are 0 best solutions below