Announcement Announcement Module
No announcement yet.
Problem using concurrent session Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem using concurrent session


    I am having problem configuring correctly the ConcurrentSessionControlStrategy and would be grateful if someone can help me. My login was working perfectly before I added the codes mentioned in the tutorial at I am now getting problem.
    After I have successfully logged in, the application keeps prompting me to relogin. I debugged the application and found out that the ConcurrentSessionControlStrategy is called before my customized UsernamePasswordAuthenticationFilter. The user is authenticated in UsernamePasswordAuthenticationFilter and session is saved there. However, in ConcurrentSessionControlStrategy, the session will be empty since it is called first and I am thinking this could be the cause. Can anyone help me understand the mechanism and how to fix my problem?

  • #2
    In fact, after the second login, the application does not redirect me to the login page again and behave as expected.
    How do I fix the problem so that it works after the 1st successful login?