Spring Security Logout Back Button

后端 未结 5 931
说谎
说谎 2021-01-03 06:33

Does spring security have a way to prevent the last point below? I\'m using 3.0.5

-user logs into my website -user goes to any page in website and clicks log out -l

5条回答
  •  感动是毒
    2021-01-03 07:22

    If you, like me, didn't get it working after using c12's caching filter, and you are using make sure you don't need the auto-config="true" part anymore. It (looks like it) adds http basic authentication which does not handle logging out by protocol! This results in that you can GET your logout URL but hitting the back button will just bring you back since you're not really logged out.

提交回复
热议问题