项目中有一技术问题:多相同用户(比如2个人用相同用户admin)进行系统登录,只要第一个人登录进去,第2个人就登录不进去,或一浏览器窗口已经登录,再开窗口也登录不进去。系统中是用spring security的配置文件进行配置的,似乎也不管用,看了看代码也没问题,纠结!!
spring.xml中
<!-- http安全配置 -->
<s:http auto-config="true" access-decision-manager-ref="accessDecisionManager">
<s:intercept-url pattern="/pages/zmldprj/login.jsp" filters="none"/>
<s:intercept-url pattern="/commons/**" filters="none"/>
<s:intercept-url pattern="/images/**" filters="none"/>
<s:intercept-url pattern="/css/**" filters="none"/>
<s:intercept-url pattern="/js/**" filters="none"/>
<s:form-login login-page="/pages/zmldprj/login.jsp" default-target-url="/sym/user/login.do"
authentication-failure-url="/pages/zmldprj/login.jsp?error=1" />
<s:logout logout-success-url="/pages/zmldprj/login.jsp"/>
<s:remember-me key="e37f4b31-0c45-11dd-bd0b-0800200c9a66" />
<s:concurrent-session-control max-sessions="1"
exception-if-maximum-exceeded="true" expired-url="/pages/zmldprj/login.jsp?error=3" />
</s:http>
<!-- 认证配置 -->
<s:authentication-provider user-service-ref="userDetailsService">
<!-- 可设置hash使用sha1或md5散列密码后再存入数据库 <s:password-encoder hash="plaintext" /> -->
<s:password-encoder hash="sha" />
</s:authentication-provider>
<!-- 项目实现的用户查询服务 -->
<bean id="userDetailsService" class="icoal.zmldprj.framework.security.UserDetailsServiceImpl" />
---------------------------------------------------------------------------------------
web.xml中
<!-- springsecurity 监听用户登录次数 spring security的框架 -->
<listener>
<listener-class>
org.springframework.security.ui.session.HttpSessionEventPublisher</listener-class>
</listener>
在网上查的也是这样配置,但是系统中就是不管用。请教高手或者遇到过次问题的人!急求??