Transfer session's max inactive interval
Fixes: gh-2693
This commit is contained in:
committed by
Eleftheria Stein
parent
3b80c2e345
commit
02b7d04027
@@ -90,6 +90,7 @@ public class SessionFixationProtectionStrategy extends
|
||||
}
|
||||
|
||||
Map<String, Object> attributesToMigrate = extractAttributes(session);
|
||||
int originMaxInactiveInterval = session.getMaxInactiveInterval();
|
||||
|
||||
session.invalidate();
|
||||
session = request.getSession(true); // we now have a new session
|
||||
@@ -99,6 +100,7 @@ public class SessionFixationProtectionStrategy extends
|
||||
}
|
||||
|
||||
transferAttributes(attributesToMigrate, session);
|
||||
session.setMaxInactiveInterval(originMaxInactiveInterval);
|
||||
return session;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user