Keep cookies, redirect properly on login