Make login/logout and access userInfo-in-session more friendly for developer.