Hello,
First, I have read that if you use multiple cookies, that each cookie can be up to 4Kb in size. I am using cookie code that has been successful in the past, but I have not tried to store over 4Kb before.
So, in my cookie code I use four cookies, which should mean that i have 16Kb to play with (I only need about 6Kb total, but multiple cookies also makes it easier to find stored information).
cookies:
1. mRdm //stores if this is the user’s first visit (e.g., mRdm1)
2. mngrTasks //array of pointers to the order of 125 randomized items (e.g., mngrTasks16:2:34:56)
3. mCats //array of main categories assigned to mngrTasks — max size of user entry is 20 characters (e.g., mCatsaaaaa:ccc:eeeeeeeee)
4. sCats //array of secondary categories assigned to mngrTasks — max size of user entry is 20 characters (e.g.sCatsbbb:ddd:fff)
The form itself is 3 columns with the first column containing the mngrTasks to be categorized, the second column composed of text entry fields where users input a main category (max 20 characters) and the third column in also composed of text entry fields where the users can input a secondary category (max 20 characters).
Everything displays correctly, and I am allowed to input all of my data. After closing the form I can open the cookie and see that all of the data is stored (approximately 6k with no one cookie larger than 4k). However, when I open the form again it acts like there is no cookie! It doesn’t even “read” the mRdm cookie (first cookie) to see that the user has been there before. If I enter any new data, then the old cookie is overwritten with the new cookie information.
Has anyone else had this issue where the form can no longer “see” the cookie after the cookie grows past a certain size? As long as I keep the size of all the cookies around 4k everything seems to work ok. Is the 4k limit for all cookies total or per cookie??
Thanks in advance!! I am happy to share the code, just didn’t know if it would help.