From the course: JavaScript: Client-Side Data Storage
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Introduction of local storage - JavaScript Tutorial
From the course: JavaScript: Client-Side Data Storage
Introduction of local storage
- [Instructor] You may have heard of client-side storage or local storage, or cookies, or even session storage. What are all these terms and the difference in between them? Usually when you run an application, your data is stored on the server and then retrieved when your client runs the code, but for some type of data, you don't wanna make a round trip to the server every time you need data, and as a user, you'd see the performance being severely impacted by this. A good example is, if we didn't have client-storage, every time a user would access a new page, the application would need to request the user to log in. Not useful. This is where client storage comes into play. In short, client-side storage are JavaScript AVIs that allows you to store data on the client. Let's explore the options we have. At first, there were cookies and we still use them, but due to their limitations and security issues, will likely be deprecated eventually, and I'd strongly suggest you avoid them. Unless…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.