The cookie will only contain information that you freely provide to a Web site.

Cookies have six parameters that can be passed to them:

  • The name of the cookie.
  • The value of the cookie.
  • The expiration date of the cookie - this determines how long the cookie will remain active in your browser.
  • The path the cookie is valid for - this sets the URL path the cookie us valid in. Web pages outside of that path cannot use the cookie.
  • The domain the cookie is valid for - this takes the path parameter one step further. This makes the cookie accessible to pages on any of the servers when a site uses multiple servers in a domain.
  • The need for a secure connection - this indicates that the cookie can only be used under a secure server condition, such as a site using SSL.