How to check if a user is logged in with spring-security?
问题 I've implemented ajax login/logout in my client code against a backend running spring-security. What I need to know is how to tell whether or not the user is logged in. For instance: User logs in. This returns a 200 from the POST to /login. I could set some variable to track state on the client side. User refreshes browser. Now the state is lost. So, I want to know if there's some way from the client to check whether or not the user is authenticated and logged in purely from the client. Is