In addition to what F-ES Sitecore advised in his comment to the question:
There is more modern, more straightforward, natural and universal alternative: using
Web storage:
http://en.wikipedia.org/wiki/Web_storage[
^].
In your case, you would need to use
sessionStorage object, to avoid contamination of the customer's browser's permanent data with temporary information It is more universal, first of all, because it can be used regardless of server side; this is a pure JavaScrip, client-side technique.
Also, to store the whole set of data stored in a single object by a single key, you can serialize and deserialize such object using native JSON object:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON[
^].
These techniques are explained on an example in this section of my article:
JavaScript Calculator, 7. Dynamic Strict Mode Switching and Web Storage.
—SA