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
When using spring, you should use SessionFixationProtectionStrategy.
SessionFixationProtectionStrategy
...
When inspecting the source code, you will see that this is similar to the approach of harsha89: It will