Sounds like you have a partial blockage in the "U" trap bend under your sink where the washing machine and dishwasher wastes are connected and the water doesn't drain away fast enough. Remove the trap and clean it out. Also make sure the dishwasher waste outlet pipe has a gentle bend in it higher than your sink outlet.
plumber
June 2009