Fix login/logout across browser windows/tabs.