Handle an invalid remember cookie (Fix #2415)