Storing an ArrayList in a cookie

  • Thread starter Thread starter Maziar Aflatoun
  • Start date Start date
M

Maziar Aflatoun

Hi,

Does anyone know how I can store an ArrayList in a cookie?

Thank you
Maz.
 
If the objects in the ArrayList can be serialized, you can serialize the
ArrayList and then store the encoded form. You should be aware that there
are size limits to what is allowed in cookies (something like 4K per
cookie).

You should probably consider storing the information on the server and
storing an identifier in the cookie.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top