slight correction to session handling to ensure expiry time gets updated with each new api call