[softserve it academy] - javascript storages
TRANSCRIPT
JavaScriptCookies
Client-Side StorageIvan Matiishyn
January, 2014
Agenda
▪ Web Storage
▪ Cookies
▪ IE User Data
▪ Offline Web Applications
localStorage & sessionStorage
▪ Storage API
▪ Object / Array notation
▪ Storage Lifetime and Scope
localStorage & sessionStorage
▪ Storage Events
– key
– newValue
– oldValue
– storageArea
– url
Cookies
▪ Are Cookies Enabled?
– navigator.cookieEnabled = true | false | undefined
▪ Lifetime
– max-age=<seconds>
– expires=<Date.toGTMString()>
▪ Scope
– path=/
– domain=.example.com
▪ Secure
– HTTP / HTTPS connection
Cookies
▪ Storing
▪ Reading
▪ Limitations standards
300 cookies / browser
20 cookies / server
4Kb / One cookie
IE User Data
▪ DHTML behavior
▪ save(), load()
IE User Data
▪ userData expiration
Offline Web Applications
▪ The Application Cache Manifest
Questions?