如何使 Spring Web Flow 中的会话无效? [英] How to invalidate the session in spring web flow?

查看:66
本文介绍了如何使 Spring Web Flow 中的会话无效?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当用户从一侧登录而另一个用户使用相同的密码和用户名(来自另一台机器)登录时,每次当第二个用户使第一个会话无效时,第一个用户会自动注销.我正在使用服务器端会话,我在数据库中有登录标志用户是否已经登录.任何想法朋友

when user login one side and another user login from same password and user name (from another machine ) ,at that time first user logout from automatically on every time when second user invalidate the first session. I am using the server side session , i have login flag in data base user is already login or not .any idea friends

推荐答案

如果您尝试使用 Spring Security Single Sign-On 实现会更好.

It is better if you try with Spring Security Single Sign-On implementation.

这个链接可能对你有用http://www.mkyong.com/教程/spring-security-tutorials/

这篇关于如何使 Spring Web Flow 中的会话无效?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆