Capacity |
10 - 15mb |
5mb |
4kb |
Expiry |
Forever untill you manually clear browser cache
|
Removed when browser window/tab closes. Opening page in new window or tab starts new session (deleted when the tab or window is closed) |
Manually set on creation it self |
Accesabilty |
Browser with same Same-origin_policy |
Browser in same window/tab with Same-origin_policy |
|
GitHub View |
Remote Repo, access with in this repository only over different machines at different location. |
Local repose we can't access the local code in another machine which is at anoter location. |
|
The localStorage and sessionStorage properties allow to save key/value pairs in a web browser. |
localStorage.setItem('local', 'same origin');
localStorage.getItem('local');
|
sessionStorage.setItem('session', 'tab with same origin');
sessionStorage.getItem('session');
|
|