- Trending Categories
- Data Structure
- Operating System
- C Programming
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is the difference between local storage vs cookies?
On client and server, the following storages are available: local storage, session storage, and cookies.
The Local Storage is designed for storage that spans multiple windows and lasts beyond the current session. In particular, Web applications may wish to store megabytes of user data, such as entire user-authored documents or a user's mailbox, on the client side for performance reasons. Cookies do not handle this case well because they are transmitted with every request.
Local Storage is available for every page and remains even when the web browser is closed, but you cannot read it on the server.
The stored data has no expiration date in local storage. With cookies, you can set the expiration duration.
- Difference between Session Storage and Local Storage in HTML5
- What is the difference between session and cookies?
- What is the difference between global and local variables in Python?
- What is the difference between pairs() vs. ipairs() in Lua?
- What is the relationship between Cookies and Cybersecurity?
- Difference Between Cache and Cookies
- Thread-local storage (TLS)
- What is the difference between Local Events and Global Events in jQuery?
- What is the difference between MySQL TINYINT(2) vs TINYINT(1)?
- Volatile Storage vs Non-Volatile Storage
- Difference between Memory and Storage
- What is the difference between Selenium's Remote Control vs WebDriver?
- Storing Credentials in Local Storage
- Difference Between Local and Global Variable