You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Javadoc for SessionFixationConfigurer#changeSessionId() was copied and pasted from SessionFixationConfigurer#none() and never updated. It is incorrect. This commit fixes that.
Copy file name to clipboardExpand all lines: config/src/main/java/org/springframework/security/config/annotation/web/configurers/SessionManagementConfigurer.java
+9-6Lines changed: 9 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -242,14 +242,17 @@ public SessionManagementConfigurer<H> migrateSession() {
242
242
}
243
243
244
244
/**
245
-
* Specifies that no session fixation protection should be enabled. This
246
-
* may be useful when utilizing other mechanisms for protecting against
247
-
* session fixation. For example, if application container session
248
-
* fixation protection is already in use. Otherwise, this option is not
249
-
* recommended.
245
+
* Specifies that the Servlet container-provided session fixation
246
+
* protection should be used. When a session authenticates, the
247
+
* Servlet 3.1 method {@code HttpServletRequest#changeSessionId()} is
248
+
* called to change the session ID and retain all session attributes.
249
+
* Using this option in a Servlet 3.0 or older container results in an
250
+
* {@link IllegalStateException}.
250
251
*
251
252
* @return the {@link SessionManagementConfigurer} for further
252
253
* customizations
254
+
* @throws IllegalStateException if the container is not Servlet 3.1 or
0 commit comments