Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Persistence of data in HTML5

Tags:

html

Can anybody tell me about the DATA PERSISTENCE in

  1. HTML5 Web SQL Database
  2. Local Storage
  3. Session Storage

Also please tell me how will clearing the cache memory affect them.

like image 374
Sandip Mandlecha Avatar asked Nov 22 '11 06:11

Sandip Mandlecha


2 Answers

Has all the info you need : http://www.html5rocks.com/en/features/offline

like image 97
pradeek Avatar answered Oct 17 '22 14:10

pradeek


  1. HTML5 Web SQL seems to be abandoned, so I won't bother with that.
  2. Local storage persists "forever" i.e. Until the application or the user explicitly clears the data.
  3. Session storage persists only until the end of browser session(Some browsers persist the data over a crash situation)

Clearing the cache should have no effect on the saved data, but clearing the cookies might destroy it.

like image 33
JNissi Avatar answered Oct 17 '22 15:10

JNissi