cancel
Showing results for 
Search instead for 
Did you mean: 

Session Registry returning empty session

former_member648479
Discoverer
0 Kudos

Hi,

We are trying to identify a particular user session and invalidate it.For this we are using sessionRegistry.

But sessionRegistry.getAllPrincipals() is empty.

We are accessing sessionRegistry in our class as below..

@Autowired

private SessionRegistry sessionRegistry;

and the below bean is added in spring.xml

<beanid="sessionRegistry"class="org.springframework.security.core.session.SessionRegistryImpl"/>

Any suggestions or workaround on how to use sessionRegistry in our application context would be of great help.

Thanks.

former_member648479
Discoverer
0 Kudos

Thanks Arvind ,

For the quick reply.

This is already added in spring.xml

<context:component-scanbase-package="org.springframework.security.core.session"/>

without this we were facing "sessionRegistry" bean not found exception.

Thanks.

Accepted Solutions (0)

Answers (0)