use session manager and pac4j manager