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.properties
ConcurrentSessionControlStrategy.exceededAllowed=This account is already using by someone.
it will display "This account is already using by someone." you can give what ever you want.
Also don't forget to config Resourcebundle
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With