user sessions. infrastructure and ui