public void logout ( ) { String userIdentifier = session . get ( config ( ) . sessionKeyUsername ( ) ) ; SessionManager sessionManager = app ( ) . sessionManager ( ) ; sessionManager . logout ( session ) ; if ( S . notBlank ( userIdentifier ) ) { app ( ) . eventBus ( ) . trigger ( new LogoutEvent ( userIdentifier ) ) ; } }
Logout the current session . After calling this method the session will be cleared