Let’s discuss a few Storage Web APIs.
Thread 🧵👇
Thread 🧵👇
1️⃣ Local Storage API
It is a form of Web Storage API that lets you store data for longer durations. If an application’s local storage is not cleared, it can stay in your browser forever.
It is a form of Web Storage API that lets you store data for longer durations. If an application’s local storage is not cleared, it can stay in your browser forever.
Although there is no expiration date with the local storage, it only stores strings.
If you are saving objects, arrays, etc., in the local storage, you will need to convert them to strings using the JSON.stringify() function.
If you are saving objects, arrays, etc., in the local storage, you will need to convert them to strings using the JSON.stringify() function.
2️⃣ Session Storage API
It is another type of storage that temporarily saves data in the web browser. The application data you save here gets cleared out after closing the browser or the tab.
It is another type of storage that temporarily saves data in the web browser. The application data you save here gets cleared out after closing the browser or the tab.
3️⃣ IndexedDB API
It is a Web API that provides you with a non-relational database inside your browser.
It has object stores that can be used to store almost anything from JavaScript objects to files to blobs, etc.
You can also perform transactions on IndexedDB.
It is a Web API that provides you with a non-relational database inside your browser.
It has object stores that can be used to store almost anything from JavaScript objects to files to blobs, etc.
You can also perform transactions on IndexedDB.
4️⃣ Cookie API
A cookie is data from a specific website stored on the client’s computer while they browse the Internet.
The HTTP cookie or the web or browser cookies saves the data that is sent by the server to the web browser.
A cookie is data from a specific website stored on the client’s computer while they browse the Internet.
The HTTP cookie or the web or browser cookies saves the data that is sent by the server to the web browser.
Cookies are primarily used in three places:
👉 Session management
👉 Personalization
👉 Tracking
👉 Session management
👉 Personalization
👉 Tracking
That’s all for now!
Follow @Rapid_API for more exclusive content. 🐙
Follow @Rapid_API for more exclusive content. 🐙
Loading suggestions...