Even though it is close to cakes and other sweetened breads , cookies usually do not use water for cohesion . A general theory of cookies may be formulated this way . Despite its descent from cakes and other sweetened breads , the cookie in almost all its forms has abandoned water as a medium for cohesion .