我正在尝试在注销时使会话无效,并且它成功使会话无效。但在那之后我收到了这个错误: -
org.springframework.webflow.conversation.NoSuchConversationException : No conversation could be found with id '2' -- perhaps this conversation has ended?
这是我的退出代码: -
public void logout() throws IOException {
FacesContext context = FacesContext.getCurrentInstance();
HttpServletRequest request = (HttpServletRequest) context
.getExternalContext().getRequest();
System.out.println(" Whether session is destroyed or not :"+SessionCounterListener.invalidate(sessionManager.getSessionID()));
securityDao.logoutUser(gUserLoginID, userDetailTO.getUserID());
}
SessionCounterListener是一个实现HttpSessionListener的类。