ASP.NET deployment: How to avoid losing session state when updating code?

asp.net, compilation, deployment

Solution

By default Sessions are stored `InProc`. You should choose an out-of-process option.

Maybe just a `StateServer` is enough in your scenario

Problem

How do you work-around the fact that sessions are dropped every time you deploy certain code files to an ASP.NET website? Sometimes we need to deploy a crucial fix in the middle of the day but don't want to boot off all our users for it.

Original source