Cookies can be classified in several different ways. For instance:
Session cookies are temporary cookies stored in the browser's memory just until the browser is closed. Their purpose is to control the page elements shown to a user during a single multi-page visit to a website, and for other short-term storage purposes.
Persistent cookies are longer-term cookies that are tagged by the issuer with an expiration date. Persistent cookies can track your activity not only on the site that issued the cookie but also on any site that includes a resource issued by the same site.
First-party cookies are cookies created by the site you're currently visiting.
Third-party cookies are cookies added by a domain that is not the domain you are currently visiting. The most common use of third-party cookies is to track users who click on advertisements and associate them with the referring domain.