I am using custom authentication using spring security. I haven't used any AuthenticationProvider but using UsernamePasswordAuthenticationToken and authenticating user which is working fine. I want to get list of all logged in users which is possible using SessionRegistry. I want to know how SessionRegistry registers new session and how? I went through spring documentation which does not explain its working. Can anyone help?