

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to store large data in JavaScript cookies?
To store large values in JavaScript cookies, try the following possibilities −
- Create a "session id" and save the settings in a database. Then store the session id in the cookie.
- Store the indexes of the selected items. Let’s say the selected items are the first 20 items on the list −
P[0,19]
- Create a table to store cookies data such as −
[ data_id , data , data_create , date_expire ]
- Store data_id in a table and when a user visits, get the data_id in cookies.
- Related Questions & Answers
- How much data can I store in JavaScript cookies?
- How can I store JavaScript objects in cookies?
- How to use PROGMEM in Arduino to store large immutable data?
- Behavior of + operator in JavaScript to store large numbers?
- How to create cookies in JavaScript?
- How to delete cookies in JavaScript?
- How to set named cookies in JavaScript?
- How to set multiple cookies in JavaScript?
- How to clear all cookies with JavaScript?
- How to set cookies expiry date in JavaScript?
- How to store data in MySQL as JSON?
- How to pass large data between activities in Android?
- How to create domain-based cookies using JavaScript?
- How to detect that JavaScript Cookies are disabled?
- How to access cookies using document object in JavaScript?
Advertisements