Cookies are normally deleted when the browser closes - if you don;t want that, you need to set the expiry date to a more reasonable value:
HTML DOM cookie Property[
^] - but a whole document will tend to get qute large, and that may impact the site's apparent speed. You might want to consider HTML5 LocalStorage instead:
HTML5 Web Storage[
^]