UserSession management API with related REST API and mvc controller