public void login ( Object userIdentifier ) { session ( ) . put ( config ( ) . sessionKeyUsername ( ) , userIdentifier ) ; app ( ) . eventBus ( ) . trigger ( new LoginEvent ( userIdentifier . toString ( ) ) ) ; }
Update the context session to mark a user logged in