The first cookie would be overwritten. It is in our software and I would venture to say that is what a majority of softwares do. As for the ethics of who should get paid, I personally feel it would be fair to split the commission between the 2 webmasters. However, if the cookie was overwritten, you really have no way of determining if that occurred or who webmaster A was.
Interesting question.
