Java 瓦丁公司;ApacheShiro-会话已过期
用户登录正常,注销正常,但如果他立即再次尝试登录(输入登录/通过+输入),他将收到弹出窗口Java 瓦丁公司;ApacheShiro-会话已过期,java,gwt,vaadin,shiro,vaadin7,Java,Gwt,Vaadin,Shiro,Vaadin7,用户登录正常,注销正常,但如果他立即再次尝试登录(输入登录/通过+输入),他将收到弹出窗口 Session Expired Take note of any unsaved data, and click here or press ESC key to continue. Apache Shiro处理的登录操作: Subject currentUser = SecurityUtils.getSubject(); currentUser.login(new UsernamePasswordTo
Session Expired
Take note of any unsaved data, and click here or press ESC key to continue.
Apache Shiro处理的登录操作:
Subject currentUser = SecurityUtils.getSubject();
currentUser.login(new UsernamePasswordToken(event.getLogin(), event.getPassword()));
注销操作还包括:
Subject currentUser = SecurityUtils.getSubject();
currentUser.logout();
注销用户被重定向到登录页面后,当他再次输入凭据时,他会收到有关会话已过期的警告。为什么新会话未启动?怎么开始呢?或者这种方法根本不正确
另外,我也试过了
VaadinSession.getCurrent().close();
但结果是一样的。这个问题可能是关于您使用Vaadin及其UI/会话的方法,而不是关于Shiro。请提供您周围的Shiro代码的方法。您是否使用Push?可能是Apache代理?您是否遵循以下部分:?