remove "if (webConfig.getInvalidateHttpSessionOnLogout())" case in module web6 in class com.haulmont.cuba.web.DefaultApp. #PL-2871

This commit is contained in:
Aleksey Kozyaikin 2013-10-31 13:43:37 +00:00
parent 3b3889cdaf
commit 48dd387c1b

View File

@ -153,33 +153,22 @@ public class DefaultApp extends App implements ConnectionListener {
afterLoggedIn();
} else {
log.debug("Closing all windows");
cleanupBackgroundTasks();
getTimers().stopAll();
if (webConfig.getInvalidateHttpSessionOnLogout()) {
cleanupBackgroundTasks();
getTimers().stopAll();
closeAllWindows();
closeAllWindows();
String name = currentWindowName.get();
if (name == null)
name = createWindowName(false);
this.close();
} else {
cleanupBackgroundTasks();
getTimers().stopAll();
Window window = createLoginWindow();
window.setName(name);
setMainWindow(window);
closeAllWindows();
currentWindowName.set(window.getName());
String name = currentWindowName.get();
if (name == null) {
name = createWindowName(false);
}
Window window = createLoginWindow();
window.setName(name);
setMainWindow(window);
currentWindowName.set(window.getName());
initExceptionHandlers(false);
}
initExceptionHandlers(false);
}
}