Refactor GetSessionTimeToLive API's