Move session data to Rest client.