What happens when application pool re-cycles in ASP.NET MVC?

Viewed 2590

I was using Session heavily for storing data of posted requests from client side on server. On research, various answers over stackoverflow pointing me , Not to use Session in ASP.NET MVC. Main reason is : Application Pool recycles frequently during life time of production server and this causes Session to recycle as well.

Thatswhy I am thinking to replace session objects with de-serialize able string "....". My whole concern is : This singleton object containing this string (de-serialize able into Objects ) must not corrupt/recycle or re-initialize on app pool re-cycle.

So my final question would be : What happens on app pool-recycle? Only Session re-cycles ? Or the whole memory re-cycles and re-initializes?

My target web server : Microsoft ASP.NET with MVC

3 Answers
Related