PL-8242 Do not use User session fixation protection if connection is not authenticated

This commit is contained in:
Yuriy Artamonov 2016-11-22 15:31:41 +04:00
parent 7fd3acff5e
commit a4fa2c0afc

View File

@ -84,7 +84,8 @@ public class DefaultApp extends App implements ConnectionListener, UserSubstitut
// substitution listeners are cleared by connection on logout
connection.addSubstitutionListener(this);
if (webConfig.getUseSessionFixationProtection()) {
if (connection.isAuthenticated()
&& webConfig.getUseSessionFixationProtection()) {
VaadinService.reinitializeSession(VaadinService.getCurrentRequest());
WrappedSession session = VaadinSession.getCurrent().getSession();