How long can a cookie last?
Internet cookies can last for different lengths of time, and it all depends on the type of cookie and its specific characteristics. When it comes to session cookies, they only last until you close your web browser. But persistent cookies can stick around for a while, even after you shut down your browser. The website that created the cookie sets its expiration date, which can vary from a few days to several years into the future.