Spring Security - Once logged in , browser do not asking for login details again

前端 未结 1 815
夕颜
夕颜 2021-01-27 10:37

I am using Spring security 3.1 along with Spring 3.

I am facing a problem where I am logging in to the system using one browser , I am able to log into the system.And i

1条回答
  •  爱一瞬间的悲伤
    2021-01-27 11:03

    It's hard to guess without actually looking at your classes. But maybe your CustomAuthenticationProvider - which is singleton by default - is keeping the first logged in user object in memory instead of looking at the security context.
    You didn't say, but I guess when you open the second browser, the logged in user panel (if there's any) shows the user that was logged in the first browser, right?

    0 讨论(0)
提交回复
热议问题