There are two main types of cookies
Session cookies are temporary cookies that are deleted when you close your browser. They are used to remember your preferences while you are browsing a website.
Persistent cookies are stored on your device for a longer period of time, even after you close your browser. They are used to remember your preferences across multiple visits to a website.