Implement the session endpoint and GET method.