TODO dojo cannot save cookie value of over 2200 chars long, need custom module to do this.
Perhaps save 10 cookies with each holding a maximum 2200chars.