Example usage for org.springframework.security.core.session SessionDestroyedEvent getId

List of usage examples for org.springframework.security.core.session SessionDestroyedEvent getId

Introduction

In this page you can find the example usage for org.springframework.security.core.session SessionDestroyedEvent getId.

Prototype

public abstract String getId();

Source Link

Usage

From source file:com.launchkey.example.springmvc.EventHandler.SessionDestroyedEventHandler.java

@Override
public void onApplicationEvent(SessionDestroyedEvent event) {
    logout(event.getId());
}

From source file:org.springframework.security.core.session.SessionRegistryImpl.java

public void onApplicationEvent(SessionDestroyedEvent event) {
    String sessionId = event.getId();
    removeSessionInformation(sessionId);
}