S
Shadab
Problem: I want to store data from a form into a cookie but the cookie
size is limited to 5kb. Eventually if the saved data crosses the limit
5 it does not get saved anymore. Is there any possibility to reduce
the size of the string so that I can save some more datas in a cookie?
I am doing a project where the usual requirement is to fill data
online (real time). In the event of no internet connection I still
want to fill the data and save in a form of a cookie (I am currently
not sure in what other format I should save the offline data). Once I
am connected to the internet it should be possible for me to
upload/integrate the offline data (which I currently save in the form
of cookie) to the online version/database.
Now the problem is if I fill the offline form the data is saved in a
form of a cookie, which has the limitations as pointed out earlier.
Subsequently the data does not get saved if I fill the 2nd form,
because the size of the first cookie is more or less 4kb!
What javascript function on clientside can I use that converts the
string into byte? Or, Is there a possibility to increase the cookie
size & how?
Thanks in anticipation.
size is limited to 5kb. Eventually if the saved data crosses the limit
5 it does not get saved anymore. Is there any possibility to reduce
the size of the string so that I can save some more datas in a cookie?
I am doing a project where the usual requirement is to fill data
online (real time). In the event of no internet connection I still
want to fill the data and save in a form of a cookie (I am currently
not sure in what other format I should save the offline data). Once I
am connected to the internet it should be possible for me to
upload/integrate the offline data (which I currently save in the form
of cookie) to the online version/database.
Now the problem is if I fill the offline form the data is saved in a
form of a cookie, which has the limitations as pointed out earlier.
Subsequently the data does not get saved if I fill the 2nd form,
because the size of the first cookie is more or less 4kb!
What javascript function on clientside can I use that converts the
string into byte? Or, Is there a possibility to increase the cookie
size & how?
Thanks in anticipation.