In this video I have explained about the
1. Local Storage
2. Session Storage
3. Cookie
For the javascript.
The concept is same for the other language also.
All these 3 things make the experience beautiful to the user.
Local storage is something having a capacity of 10mb in the browser which is huge. There is lot of thing that we can storage to the client end with talking to the server which actually reduces lot of effort and the server calls. The good fact about the local storage is it never expires.
Session Storage have a capacity of 5mb which again a great capacity. The benefit to this storage is that it is accessible from the tab only. If you want some information which should not be shared across the session then you should use the session storage. It contains more about the specific user data.
Cookie has the capacity of 4kb. It is too small but use is different. This is also accessible to the different sessions & tabs like local storage. This used to be sent to the server for the access tokes or authentication purpose. We can expire any cookie manually by passing the date string as expires key.
#LocalStorage #SessionStorage #Cookie #ShubhamGupta
Follow me -
Facebook - / shubhamguptafb
LinkedIn - / shubhamorg
Twitter - / shubhtt
Instagram - / shubham.gupta.g