Animals sample information

When foraging, how do animals sample information to know where to find food sites again, and how do they communicate that information to other animals (information transfer)?