Session Hijacking Prevention in Java (Struts 2.0) | Error Encountered
问题 I'm developing an application in Java which seems to have a session hijacking vulnerability. In order to prevent this, the recommendation is to change the JSESSION ID for a user after log in My application is based on Struts 2.0 and Tomcat 7 and I have implemented a code to change the JSESSIONID after the user logs in. However i am facing the following problem while running the code. java.lang.IllegalStateException: setAttribute: Session already invalidated at org.apache.catalina.session