Reputation: 578
My ASP.NET MVC application uses a data structure that is time costly to create, so we are sharing it's instans through the requests. Now, to store changes in this data we need to know, when the seesion is end, or the service shuts down.
Is there any better way then just use Finalyser?
Upvotes: 1
Views: 909
Reputation: 1713
Take a look at When is Session_End() called in ASP.NET MVC?
You can use an in process session and put the Session_End
function in your global.asax
Upvotes: 2