|
@@ -92,7 +92,8 @@ public class HttpSessionIntegrationFilter extends AbstractIntegrationFilter {
|
|
|
|
|
|
public void commitToContainer(ServletRequest request,
|
|
public void commitToContainer(ServletRequest request,
|
|
Authentication authentication) {
|
|
Authentication authentication) {
|
|
- if (request instanceof HttpServletRequest) {
|
|
|
|
|
|
+ if (request instanceof HttpServletRequest
|
|
|
|
+ && ((HttpServletRequest) request).isRequestedSessionIdValid()) {
|
|
HttpSession httpSession = ((HttpServletRequest) request).getSession();
|
|
HttpSession httpSession = ((HttpServletRequest) request).getSession();
|
|
|
|
|
|
if (httpSession != null) {
|
|
if (httpSession != null) {
|