Add comment related to why we clear out session storage when writing to cookie.