I updated my User class, and now, when someone who had an old version of the User class stored in the access session area is accessing my site, I get an InvalidClassException .
javax.servlet.ServletException: java.lang.RuntimeException: java.io.InvalidClassException: User; local class incompatible: stream classdesc serialVersionUID = 4949038118012519093, local class serialVersionUID = -971500502189813151
How to stop this error for these users? I could probably cancel all sessions every time I want to update a class that is stored in the session area, but is there a better way to prevent my user from logging in again?
source share