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.
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.