There are two types of cookies; permanent and temporary (sessionscookies). Permanent cookies are stored as a file on your device for a long period of time. When the expiration date is passed, the cookie is deleted when you return to the site that created it. Sessionscookies are temporarily placed on your computer when you visit the site and are sent between your computer and the server while you visit the site and are deleted when you close your browser.
If you do not want to allow cookies to be stored on your computer, you can prevent it through the settings in your browser. No cookies will be stored.