I am using SQLServer SessionState mode to store a session in my ASP.NET application. It stores certain objects that are serialized / deserialized every time they are used.
If I make any changes to the structure code of these objects, and I put the new version in real time, any registered user will receive an error, since their session objects (old versions) do not correspond to the structure in which the new version expects during deserialization.
Is there a way to clear all sessions at once in the database so that all active sessions expire and users are forced to log in again (and, therefore, all session objects are created from scratch)?
Or ... Is there any other way to solve this situation?
source
share