The way I cook beans (always dry, never canned) is A) I soak them the night before, B) boil just the beans for 45 min, and C) then add other ingredients and cook another 1 hr.
Most of the time, and depending on the kind of bean used, the beans in the step B while boiling release lots of white foam. I usually skim the foam and throw it away as it takes too much space in the pot.
Should I discard the foam, or keep it, and why?