The Reasoning Behind Web Cookies