Proper login and logout with multiple mirrors