- logout fail after browser refresh
This commit is contained in:
Heng Sin Low 2009-12-15 22:51:32 +00:00
parent 8840cf8e42
commit a171244114
2 changed files with 6 additions and 0 deletions

View File

@ -52,9 +52,11 @@ import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.EventListener;
import org.zkoss.zk.ui.event.Events;
import org.zkoss.zk.ui.impl.ExecutionCarryOver;
import org.zkoss.zk.ui.sys.DesktopCache;
import org.zkoss.zk.ui.sys.DesktopCtrl;
import org.zkoss.zk.ui.sys.ExecutionCtrl;
import org.zkoss.zk.ui.sys.ExecutionsCtrl;
import org.zkoss.zk.ui.sys.SessionCtrl;
import org.zkoss.zk.ui.sys.Visualizer;
import org.zkoss.zul.Window;
@ -211,6 +213,9 @@ public class AdempiereWebUI extends Window implements EventListener, IWebClient
}
}
appDesktop.getComponent().detach();
DesktopCache desktopCache = ((SessionCtrl)currSess).getDesktopCache();
if (desktopCache != null)
desktopCache.removeDesktop(Executions.getCurrent().getDesktop());
} catch (Exception e) {
appDesktop = null;
} finally {

View File

@ -73,6 +73,7 @@ public class SessionManager
{
Env.getCtx().clear();
Session session = getSession();
session.removeAttribute(SessionContextListener.SESSION_CTX);
session.invalidate();
}