If you need local storage, you need local storage! Based on the information you describe, I think this is probably too hard to use in a session cookie.
Mark the documents . Keep in mind that only IE8 + is supported, so if you need to support other versions, you will need to do extra work.
I would personally enable localStorage where possible, then go back to the server circuit if the browser does not support it (and the data is certainly too much for cookies).
RE Polyfills Update
Keep in mind that the polyfiles offered by Rafael return to cookies if the browser does not support localStorage, etc. Be sure to check with good dissemination of data, and keep in mind that it will send all this data with each request (which has its own branches).
source share