我的流量:
我怎样才能通过session1呢?
我的spring配置:
<session-management session-fixation-protection="migrateSession">
<concurrency-control max-sessions="1" error-if-maximum-exceeded="false"/>
</session-management>发布于 2015-06-02 14:13:41
它使用的是“记住我”登录来登录您,again.You可以将您过期的会话重定向到另一个url,如下所示,并手动终止当前会话。
在安全配置中:
(只需添加过期的url属性)
.sessionManagement().sessionAuthenticationStrategy(concurrentSessionControlStrategy)
.maximumSessions(1).maxSessionsPreventsLogin(false).expiredUrl("/users/expire-me")在fwd api/url中:
@RequestMapping(value="expire-me", method=RequestMethod.GET)
@ResponseBody
public void expireSession(HttpServletRequest request,HttpServletResponse response) throws IOException {
request.getSession(false).invalidate();
}这就是我所做的,一切都很好。
发布于 2014-11-14 08:38:47
(另一项工作)您必须使用记住我身份验证,这是您的第一次浏览器重新登录。如果您希望它正常工作,请不要使用remember-me。
https://stackoverflow.com/questions/14740301
复制相似问题