dinosf
Technical User
- Dec 27, 2002
- 11
Hey guys -
Sorry for the basic question, but my javascript knowledge is small, I've got an app that I'm developing and need to use a cookie the document.cookie(name=value) works fine, but I'm not sure of the syntax to assign multiple keys to the same cookie (e.g. is is document.cookie("name"), key1=value). It's primarily for an economy of code that I'm asking, I could use 3 cookies for my purposes, but 1 with 3 name value pairs seems more efficient. Thank you for your time in reading this.
Sorry for the basic question, but my javascript knowledge is small, I've got an app that I'm developing and need to use a cookie the document.cookie(name=value) works fine, but I'm not sure of the syntax to assign multiple keys to the same cookie (e.g. is is document.cookie("name"), key1=value). It's primarily for an economy of code that I'm asking, I could use 3 cookies for my purposes, but 1 with 3 name value pairs seems more efficient. Thank you for your time in reading this.