Chocolate chip? Oatmeal? Telling the difference between cookies

Chocolate chip? Oatmeal? Telling the difference between cookies

Which are the main differences between a domain cookie and a host cookie?

    Requires Free Membership to View

    When you register, you'll begin receiving targeted emails from my team of award-winning writers. Our goal is to keep you informed on the hottest data and information management trends today.

    Hannah Smalltree, Editorial Director

    By submitting your registration information to SearchDataManagement.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchDataManagement.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

Domain cookies are cookies set by a Web application that do not consider the host (www.example.com) when performing a function, but rather the domain name (example.com). A host cookie is specific to a particular host, so all the functions that use that cookie will be bound to it. The advantage of using domain cookies in your Web applications is when you have a load balanced or clustered web environment. In these environments, you typically will have a number of the exact same systems (www1, www2, www3, etc) running the exact same application. If each application had to use host cookies, you would have to change the code setting the cookie on each mirrored system, thereby diminishing the value of a clustered environment. With domain cookies, you can simply set the cookie to the domain and more easily manage updates and user cookies.

This was first published in September 2003