O
optimistx
If one would like to store in the user's local computer (= where the browser
is) some more data than the about 4 kilobytes the cookie can take, what to
do?
The word 'storage' was mentioned lately, but does it store during one
session only?
(Why not to store in the server? Yes, that is possible, but in this case I
would try to test the limits of javascript in the local computer... I love
javascript, just now, at least).
One idea is to pack data e.g. with LZH- algorithms, but they use 8 bits /
byte, and cookies allow only a subset. Allowed characters could be created
from the LZH- output bitstring (e.g. by picking 6 bits at a time, or perhaps
7), but this would probably be a bit messy. I could not with a 2 minute
search find an LZH- packer written in javascript, but there might be.
In this application some users might always be satisfied with the unpacked 4
kilobyte data, but some would prefer more.
Any ideas, more elegant perhaps?
is) some more data than the about 4 kilobytes the cookie can take, what to
do?
The word 'storage' was mentioned lately, but does it store during one
session only?
(Why not to store in the server? Yes, that is possible, but in this case I
would try to test the limits of javascript in the local computer... I love
javascript, just now, at least).
One idea is to pack data e.g. with LZH- algorithms, but they use 8 bits /
byte, and cookies allow only a subset. Allowed characters could be created
from the LZH- output bitstring (e.g. by picking 6 bits at a time, or perhaps
7), but this would probably be a bit messy. I could not with a 2 minute
search find an LZH- packer written in javascript, but there might be.
In this application some users might always be satisfied with the unpacked 4
kilobyte data, but some would prefer more.
Any ideas, more elegant perhaps?