Get security context from SessionDestroyedEvent in Spring Session -


i using spring session 1.0.1. need execute logic when user logs out, , need rely on http session being invalidated cover case user fails explicitly log out.

the standard spring security sessiondestroyedevent includes applicable securitycontext, spring session version of sessiondestroyedevent contains session id. time event fires, session no longer held sessionrepository can't looked id.

is there way retrieve securitycontext expired session using spring session?

unfortunately there not. problem @ time redis fires event, session gone. furthermore, event received redis not contain original information. means there no way retrieve securitycontext.

for updates on please track spring-projects/spring-session/issues/4


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -