From: Niels Erik G. Nielsen Date: Fri, 12 Apr 2013 02:46:43 +0000 (-0400) Subject: Do some resetting of session on login X-Git-Tag: v0.0.7~177 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=2e0ba76130e69557799700f32d437a72a34e7501;p=mkjsf-moved-to-github.git Do some resetting of session on login --- diff --git a/src/main/java/com/indexdata/pz2utils4jsf/pazpar2/Pz2ProxyBean.java b/src/main/java/com/indexdata/pz2utils4jsf/pazpar2/Pz2ProxyBean.java index 0f9e97d..6982f9c 100644 --- a/src/main/java/com/indexdata/pz2utils4jsf/pazpar2/Pz2ProxyBean.java +++ b/src/main/java/com/indexdata/pz2utils4jsf/pazpar2/Pz2ProxyBean.java @@ -45,7 +45,10 @@ public class Pz2ProxyBean extends Pz2Bean implements ServiceProxyInterface { @Override public String login(String navigateTo) { logger.info("doing login"); - ((ServiceProxySession) pz2).setUser(user); + session().setUser(user); + session().resetDataObjects(); + session().removeCommand("record"); + session().setQuery(null); return session().login(navigateTo); }