"HTTP cookie (also known as a web cookie, or browser cookie) is used for an origin website to send state information to a user's browser and for the browser to return the state information to the origin site." (Source: Wikipedia)
Considering the drawbacks that we've mentioned above it is obvious that web developers have started seeking for a new and efficient solution. Currently this solution is HTML5 web storage, and judging from the popularity of HMTL5 as a technology and HTML5 templates as design solutions for the new web, we definitely can tell that HTML5 web storage has a great future. This new technology or storage has two key features that will make you forget about cookies:
Local storage uses technogoly similar to Silverlight isolated storage when all data is stored on the client's side. Also local storage has no time limit - basically you can access your personal data anytime you want. Local storage is positioned as a cost-effective alternative to HTTP cookies.
Session storage is used to store the data of one session and it will be deleted when the user closes the browser window. As you may have guessed, the session storage is great for storing data for the websites which are open in one browser window while local storage can span across multiple browser windows.
Web Storage is supported by such browsers as IE8, Firefox 3.5, Safari 4, Google Chrome 4, Opera 10.50 and all of their newer versions. So, if you want to start using web storage API please consider the list of browsers supported.
This technology is great for web developers that create various web applications. Local storage allows you to run applications offline, use data during multiple browsers sessions, save info about the products added to the shopping cart and so on. Before you'll start using web storage objects you must keep in the mind that web storage as well as cookies can be turned off by the user.
Another important detail which concerns the web storage is the ability to store only strings which is a huge drawback so far. Also don't forget about the security issues that might appear while using web storage. Use only secure connections to share improtant information between client's machine and server. That is all for now, good luck and hope to see you soon.
P.S. Don't forget to check out great collection of HTML5 web storage tutorials.
Subscribe to our newsletter and access exclusive content and offers available only to MonsterPost subscribers.