Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Client Side Persistence (Storage)

In my demos, I'd like to avoid using traditional DBs and store all the data on the client side, e.g. information submitted via a form.

What alternatives do I have for that. I've heard about Gears but I don't have any practical experience.

Can I also store binary information besides strings, e.g. an image?

like image 872
Stella Peristeraki Avatar asked Sep 22 '09 15:09

Stella Peristeraki


People also ask

What is client-side data storage?

Client-side storage works on similar principles, but has different uses. It consists of JavaScript APIs that allow you to store data on the client (i.e. on the user's machine) and then retrieve it when needed.

Which are the forms of client-side storage?

The various forms of client-side storage are web databases, filesystem API, Offline web applications and cookies.

Is local storage client-side or server-side?

Cookies are primarily for server-side reading (can also be read on client-side), localStorage and sessionStorage can only be read on client-side.


2 Answers

You may have a look on YUI's StorageUtility. It can use HTML 5, Google Gears or SWF on a fallback basis.

like image 93
Andy Li Avatar answered Oct 10 '22 09:10

Andy Li


Your options are somewhat limited I'm afraid.

  • Cookies
  • Depending on your willingness to only use certain browsers you could implement browser based storage
like image 29
Steerpike Avatar answered Oct 10 '22 09:10

Steerpike