HTML5 provide a web storage API, include localStorage and sessionStorage, that most browsers have supported,but not in some old browsers,like IE lower than version 8, and Firefox lower than version 3.5. This script will provide solutions for it, and after you included it, you can use the HTML5 web storage API directly.