 
  Data Structure Data Structure
 Networking Networking
 RDBMS RDBMS
 Operating System Operating System
 Java Java
 MS Excel MS Excel
 iOS iOS
 HTML HTML
 CSS CSS
 Android Android
 Python Python
 C Programming C Programming
 C++ C++
 C# C#
 MongoDB MongoDB
 MySQL MySQL
 Javascript Javascript
 PHP 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.
Advertisements
 