3. Why Web Storage?
• Performance
• Speed
• Reduced load on the servers
• Offline applications
• Transaction - HTTP stateless
Sunday, 20 February 2011
4. History of Client-side Storage
• HTTP Cookie
• userData Behaviour in IE 5.5
• Local Shared Objects in Adobe Flash
• Google Gears
Sunday, 20 February 2011
5. HTML
Web Storage
• by WHATWG / W3C
• HTML5? Actually not...
• 2 Storage Areas :
• localStorage
• sessionStorage
• globalStorage
Sunday, 20 February 2011
6. Storage API
interface Storage {
readonly attribute unsigned long length;
DOMString key(in unsigned long index);
getter any getItem(in DOMString key);
setter creator void setItem(in DOMString
key, in any value);
deleter void removeItem(in DOMString key);
void clear();
};
Sunday, 20 February 2011