I am using Spring Security 3.0 in my project and I am restricting user to have maximum one session. Configuration is given below :
<security:session-management>
<security:concurrency-control error-if-maximum-exceeded="true" max-sessions="1"/>
</security:session-management>
I want to print the custom message(not default provided by spring) when maximum sessions are reached. Please help.
Thanks in advance!!
Please keep this in your
messages.propertiesit will display “This account is already using by someone.” you can give what ever you want.
Also don’t forget to config
Resourcebundle