There are two types of cookies:-
1) Session cookies - these are temporary cookie files, which are erased when you close your browser. When you restart your browser and go back to the site that created the cookie, the website will not recognize you.
2) Persistent cookies – these files stay in one of your browser's sub folders until you delete them manually or your browser deletes them based on the duration period contained within the persistent cookie's file