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
Post a Comment