Cookies can't hold much information. Sounds like you want to store more.
First have a look at local storage - sample here.
Or you can consider using lawndart which is an api built on top of indexeddb and websql (for Safari). Here is a tutorial about indexed db.