With new Html 5 there are 3 main ways to store data in your browser:
- localStorage
- WebSQL DB
- Indexed DB
I wanted to know, for each of the types, for how long data is stored?
If the user enters the day after, the data will still be there? after one month? and one year?
Thanks
The most correct answer to this question is: You don’t know.
The user could wipe his/her local data at any time, and any type of local storage is subject to user preferences and to be considered extremely volatile. However, there is no defined expiration time, according to Web Storage specifications:
Source: http://dev.w3.org/html5/webstorage/