how to refresh JSESSIONID cookie after login

前端 未结 10 1541
我在风中等你
我在风中等你 2021-01-30 17:41

A product I work on got a tough security audit by a potential customer and they are upset that Tomcat sets a JSESSIONID cookie before authentication has happened. That is, Tomc

10条回答
  •  轮回少年
    2021-01-30 18:22

    When using spring, you should use SessionFixationProtectionStrategy.

    
    ...
    
    

    When inspecting the source code, you will see that this is similar to the approach of harsha89: It will

    1. create a new session
    2. tranfer attributes of the old session.

提交回复
热议问题