Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/304.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/gwt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 瓦丁公司;ApacheShiro-会话已过期_Java_Gwt_Vaadin_Shiro_Vaadin7 - Fatal编程技术网

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代理?您是否遵循以下部分:?