title: How to clear SQL session state for all users in ASP.NET
body: <p>I use SQLServer SessionState mode to store session in my ASP.NET application.  It stores certain objects that are serialized/deserialized every time they are used.</p>
  
  <p>If I make any changes in code of the structure of those objects and I put a new version live, any logged user will get an error, as their session objects (the old version ones) do not match the structure that the new version expects while deserializing.</p>
  
  <p>Is there a way to clear all sessions at once in DB so that all active sessions expire and users are forced to log in again (and therefore all session objects are created from scratch)?</p>
  
  <p>Or... Is there any other way to solve this situation?</p>