Update cookie parsing code from AllAccounts