From 2e0ba76130e69557799700f32d437a72a34e7501 Mon Sep 17 00:00:00 2001 From: "Niels Erik G. Nielsen" Date: Thu, 11 Apr 2013 22:46:43 -0400 Subject: [PATCH] Do some resetting of session on login --- .../java/com/indexdata/pz2utils4jsf/pazpar2/Pz2ProxyBean.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } -- 1.7.10.4