Hello,
I´m trying to prevent that the same user login from two different
computers. I´ve read the docs on acegi Web and I have configure the filters but
the users can continue login from the 2 computers with the same user.
¿Anyone knows that´s wrong?
Thanks!
My configuration is:
Context.xml:
<bean id="concurrentSessionController"
class="org.acegisecurity.concurrent.ConcurrentSessionControllerImpl">
<property name="maximumSessions">
<value>1</value>
</property>
<property name="sessionRegistry">
<ref bean="sessionRegistry"/>
</property>
</bean>
<bean id="sessionRegistry"
class="org.acegisecurity.concurrent.SessionRegistryImpl"/>
<bean id="concurrentSessionFilter"
class="org.acegisecurity.concurrent.ConcurrentSessionFilter">
<property name="sessionRegistry">
<ref bean="sessionRegistry"/>
</property>
</bean>
<bean id="authenticationManager"
class="org.acegisecurity.providers.ProviderManager">
<property name="providers">
<list>
<ref bean="ldapAuthProvider" />
<ref bean="anonymousAuthenticationProvider" />
</list>
</property>
<property name="sessionController">
<ref bean="concurrentSessionController"/>
</property>
</bean>
My filter chain is:
/**/*.jsp*=httpSessionContextIntegrationFilter,anonymousProcessingFilter,formAuthenticationProcessingFilter,exceptionTranslationFilter,filterSecurityInterceptor,concurrentSessionFilter
/**/*.do*=httpSessionContextIntegrationFilter,anonymousProcessingFilter,formAuthenticationProcessingFilter,exceptionTranslationFilter,filterSecurityInterceptor,concurrentSessionFilter
Web.xml
<listener>
<listener-class>
org.acegisecurity.ui.session.HttpSessionEventPublisher
</listener-class>
</listener>
Arturo San Feliciano Martín
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Home: http://acegisecurity.org
Acegisecurity-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer