WEB STORAGE

The Web Storage mechanism allows to replace the cookies mechanism. There are two objects where to store client data: the SessionStorage and the LocalStorage. The first object stores data only in the context of the current browser's tab, while the second stores data in the browser's context.

This page contains some JavaScript samples accessing the Web Storage's API: to activate these JavaScript functions just click on the buttons below. Notice that LocalStorage is up to 5MB of data for each single browser. For further information see Web Storage.

To browse the code click on the Show code, Show markup labels below.




   

                       

       





Show code


Show markup