Storing multiple values ββin cookies in Java
3 answers
Cookie values ββare strings.
If you want to put structured data in them, you have to make that data a string.
Of course, you want clients to be able to read these values ββeasily. Query String encoded parameters or JSON seem to be good as they are browser native. JavaScript application can deserialize structured data.
+1
source to share