react-social-login

The easiest way to integrate Social Login in your React Apps ...Checkout NPM

Thursday, July 2, 2015

LocalStorage v/s SessionStorage v/s Cookie

Comparison of different options to save data locally on browser


Local Storage
 (WebStorage)
SqlLite DB
deprecated
FileSystem
Not checked yet
Session Storage
Cookie (No expiration set)
SCOPE
Domain (no expiry)


Domain and window
Domain and expiry
Max Payload Size (per domain)
#
Ch-2.5MB
FF-5MB
IE10 - 4.7MB
25MB

Ch-2.5MB
FF-Unlimited
IE10 - 4.7MB
4KB
Available across tabs (same domain)?
Yes


No
Yes
Available on Page Refresh?
Yes


Yes
Yes
Across windows (same domain)
Yes


No
Yes
New Incognito Window (same domain)
No


No
No
Available on close/open same browser?
Yes


No
No (if no expiry)
Goes to server on every request?
No


No
Yes
Compatible on mobile browser?
Yes


 ??
iOS, Android - Yes
Windows - Max 20
BB - Per user
Browser compatibility
Most modern browsers


Most modern browsers
Almost all support
Accessible across site?
No


No
No
Can expiry be set?
No. Doesn't expire auto


No. Auto expire on window close
Yes