Types of Computer Cookies

Understand the difference between session cookies and persistent cookies.
We receive compensation from the products and services mentioned in this story, but the opinions are the author's own. Compensation may impact where offers appear. We have not included all available products or offers. Learn more about how we make money and our editorial policies.

As you browse websites, cookies are stored in your browser. But not all cookies are the same. 

There are two types of cookies:

Session cookies 

Session cookies 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. You will have to log back in (if login is required) or select your preferences/themes again if the site uses these features. A new session cookie will be generated, which will store your browsing information and will be active until you leave the site and close your browser. 

Learn more about session cookies.

Persistent cookies 

Persistent cookies are files stay in one of your browser's subfolders until you delete them manually or your browser deletes them based on the duration period contained within the persistent cookie's file. 

Learn more about persistent cookies.

Unlimited Device Protection and Large Server Network
4.9
Editorial Rating
Learn More
On Surfshark's website
VPN
Surfshark
79% off + 2 months free
  • All-in-one VPN app with 24/7 protection thanks to 3,200+ RAM-only servers in over 100 countries
  • Real-time malware defense, webcam protection, alternative ID creation, ad blocking, and more
  • One subscription covers unlimited devices for your entire household with access to 24/7 support
  • Headquarters in Nine Eyes Alliance