+Your session appears to have timed out. Please start again. +
+ + diff --git a/web/src/main/java/org/springframework/security/web/session/SessionManagementFilter.java b/web/src/main/java/org/springframework/security/web/session/SessionManagementFilter.java index 155cd75284..9c81fc62d4 100644 --- a/web/src/main/java/org/springframework/security/web/session/SessionManagementFilter.java +++ b/web/src/main/java/org/springframework/security/web/session/SessionManagementFilter.java @@ -84,7 +84,8 @@ public class SessionManagementFilter extends GenericFilterBean { logger.debug("Requested session ID" + request.getRequestedSessionId() + " is invalid."); if (invalidSessionUrl != null) { - logger.debug("Redirecting to '" + invalidSessionUrl + "'"); + logger.debug("Starting new session (if required) and redirecting to '" + invalidSessionUrl + "'"); + request.getSession(); redirectStrategy.sendRedirect(request, response, invalidSessionUrl); return;