change session api