javascript - What is the most persistent HTML5 data storage? -


pre-html5 had cookies, aren't reliable way persistently store data user locally because user can (and does) clear cookies in browser.

now, html5 introduces localstorage alternative (which has benefit of not being sent every http request). however, suffers same fate cookies do–death deletion.

local data persistency inherently unreliable in sense user has ultimate control. but, cookies , localstorage can removed without user knowing they're doing when removing browser's data.

what html5 feature reliable means of storing persistent data locally without risk of user removing inadvertently?

all data stored on clients computer has ability of being cleared when clear browsing data. indexeddb, websql , other methods of storing data on client's computer related browser suffer flaw.

one option store data on server , give user key can used retrieve data.

another option use java or plugin can access actual file system write clients computer.

no matter what, data given client has ability messed , should treated same user input.


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -