added execute method to ensure relogin if the session is invalid