A cookie reader/creator
based on the functions by Peter-Paul Koch (http://quirksmode.org)
Class for creating, getting, and removing cookies.
| Properties | |
| set | Sets a cookie in the browser. |
| get | Gets the value of a cookie. |
| remove | Removes a cookie from the browser. |
Sets a cookie in the browser.
| key | the key (name) for the cookie |
| value | the value to set |
| duration | optional, how long the cookie should remain (in days); defaults to 1 year. |
Cookie.set("username", "Aaron", 1) //save this for a day