HTML5 Cookie

What Does HTML5 Cookie Mean?

An HTML 5 cookie is a cookie-like storage options available in HTML 5. It consists of browser-based local storage and session storage, which is created and accessible by the Web page itself.


An HTML5 cookie is also known as HTML5 Web storage and is an alternative to the commonly used browser cookie.

Techopedia Explains HTML5 Cookie

An HTML5 cookie generally serves a similar functionality as that of a standard website cookies, but it’s much faster and more secure. It was designed to eliminate the security issues that come with a traditional cookie. An HTML5 cookie stores the data directly on the browser in two distinct forms:

  • Session storage saves the data until the session expiry
  • Local storage is persistent storage

This system enables confidential transactions to be securely removed, offline access of applications, less header data in communication with the primary website and larger capacity than traditional cookie storage.


Related Terms

Margaret Rouse

Margaret is an award-winning technical writer and teacher known for her ability to explain complex technical subjects to a non-technical business audience. Over the past twenty years, her IT definitions have been published by Que in an encyclopedia of technology terms and cited in articles by the New York Times, Time Magazine, USA Today, ZDNet, PC Magazine, and Discovery Magazine. She joined Techopedia in 2011. Margaret's idea of a fun day is helping IT and business professionals learn to speak each other’s highly specialized languages.