Hi I have a situation where I need to mantain the state of a group of documents without storing them in the database.
I was thinking of storing the documents on the filesystem and inside the session the fileName and a GUID , and when the session expires to be able to delete the documents.
The problem is that I do not know exactly how to determine if session expired.
I know if I have something like this: var session = Session["item"] it will return null if no items are inside the sessions.
But how can I handle if the user for example closes the browser.No call has been made to the server when doing that.
In this case I should delete the documents on the filesystem.
Is there anyway to achieve this?